This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/download/events.php
2024-02-09 16:36:57 +00:00

27 lines
592 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
class ImageDownloadingEvent extends Event
{
public Image $image;
public string $mime;
public string $path;
public bool $file_modified = false;
/** @var array<string, mixed> */
public array $params;
/**
* @param array<string, mixed> $params
*/
public function __construct(Image $image, string $path, string $mime, array $params)
{
parent::__construct();
$this->image = $image;
$this->path = $path;
$this->mime = $mime;
$this->params = $params;
}
}