Beispiel #1
0
 /**
  * ImageFile constructor.
  * @param string $file
  * @param int $width
  * @param int $height
  */
 function __construct($file, $width, $height)
 {
     parent::__construct($file);
     $this->width = $width;
     $this->height = $height;
 }
Beispiel #2
0
 /**
  * @param GenericFile $file
  */
 function addFile(GenericFile $file)
 {
     $file->setOrder(count($this->files));
     $this->files->add($file);
 }