engine = $engine; $this->input_path = $input_path; $this->input_mime = $input_mime; $this->output_path = $output_path; $this->target_height = $target_height; $this->target_width = $target_width; $this->target_mime = $target_mime; if (empty($alpha_color)) { $alpha_color = Media::DEFAULT_ALPHA_CONVERSION_COLOR; } $this->alpha_color = $alpha_color; $this->target_quality = $target_quality; $this->minimize = $minimize; $this->allow_upscale = $allow_upscale; $this->resize_type = $resize_type; } } class MediaCheckPropertiesEvent extends Event { public function __construct(public Image $image) { parent::__construct(); } }