engine = $engine; $this->input_path = $input_path; $this->input_type = $input_type; $this->output_path = $output_path; $this->target_height = $target_height; $this->target_width = $target_width; $this->target_format = $target_format; $this->target_quality = $target_quality; $this->minimize = $minimize; $this->allow_upscale = $allow_upscale; $this->resize_type = $resize_type; } } class MediaCheckPropertiesEvent extends Event { public $image; public $file_name; public $ext; public function __construct(Image $image) { parent::__construct(); $this->image = $image; $this->file_name = warehouse_path(Image::IMAGE_DIR, $image->hash); $this->ext = strtolower($image->ext); } }