setFile($file); $this->setName($name); } /** * @param mixed $file * @return $this */ public function setFile($file) { $this->file = $file; return $this; } /** * @return mixed */ public function getFile() { return $this->file; } /** * @param mixed $name * @return $this */ public function setName($name) { $this->name = $name; return $this; } /** * @return mixed */ public function getName() { return $this->name; } public function getBody() { return file_get_contents($this->file); } }