/** * 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; }
/** * @param GenericFile $file */ function addFile(GenericFile $file) { $file->setOrder(count($this->files)); $this->files->add($file); }