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/bulk_import_export/events.php

37 lines
668 B
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?php
declare(strict_types=1);
2020-06-02 23:05:09 +00:00
namespace Shimmie2;
2020-06-02 23:05:09 +00:00
class BulkExportEvent extends Event
{
public Image $image;
/** @var array<string,mixed> */
public array $fields = [];
2020-06-02 23:05:09 +00:00
public function __construct(Image $image)
{
2020-10-29 01:28:46 +00:00
parent::__construct();
2020-06-02 23:05:09 +00:00
$this->image = $image;
}
}
class BulkImportEvent extends Event
{
public Image $image;
/** @var array<string,mixed> */
public array $fields = [];
2020-06-02 23:05:09 +00:00
/**
* @param array<string,mixed> $fields
*/
public function __construct(Image $image, array $fields)
2020-06-02 23:05:09 +00:00
{
2020-10-29 01:28:46 +00:00
parent::__construct();
2020-06-02 23:05:09 +00:00
$this->image = $image;
$this->fields = $fields;
}
}