public function setPhoto($photo) { $this->photo = $photo; if ($this->photo) { $this->photo->setParent($this->dir); $this->photo->setInvisible(TRUE); } }
/** * @param FileEntity $image */ public function setImage(FileEntity $image = NULL) { $this->image = $image; if ($this->image) { $this->image->setParent($this->dir); $this->image->setInvisible(TRUE); } }
/** * @param \CmsModule\Content\Entities\FileEntity $file */ private function setFile($file) { $this->file = $file; if ($this->file) { $this->file->setParent($this->invoice->dir); $this->file->setInvisible(TRUE); } }