Example #1
0
 public function update(File $file)
 {
     $this->setName($file->getName());
     $this->setDescription($file->getDescription());
     $this->setLink($file->getLink());
     $this->setLocalPath($file->getLocalPath());
     $this->setThumbnailLink($file->getThumbnailLink());
     $this->setLocalThumbnailPath($file->getLocalThumbnailPath());
     $this->setCategory($file->getCategory());
     $this->setExtension($file->getExtension());
     $this->setSize($file->getSize());
     $this->setDimensions($file->getDimensions());
     $this->setAuthor($file->getAuthor());
     $this->setCreationDate($file->getCreationDate());
 }