2020-01-26 13:19:35 +00:00
|
|
|
<?php declare(strict_types=1);
|
2019-07-13 17:12:03 -05:00
|
|
|
|
2019-08-07 14:53:59 -05:00
|
|
|
/*
|
|
|
|
* DisplayingImageEvent:
|
|
|
|
* $image -- the image being displayed
|
|
|
|
* $page -- the page to display on
|
|
|
|
*
|
|
|
|
* Sent when an image is ready to display. Extensions who
|
|
|
|
* wish to appear on the "view" page should listen for this,
|
|
|
|
* which only appears when an image actually exists.
|
|
|
|
*/
|
2019-07-13 17:12:03 -05:00
|
|
|
class DisplayingImageEvent extends Event
|
|
|
|
{
|
|
|
|
/** @var Image */
|
|
|
|
public $image;
|
|
|
|
|
|
|
|
public function __construct(Image $image)
|
|
|
|
{
|
2020-01-26 13:19:35 +00:00
|
|
|
parent::__construct();
|
2019-07-13 17:12:03 -05:00
|
|
|
$this->image = $image;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function get_image(): Image
|
|
|
|
{
|
|
|
|
return $this->image;
|
|
|
|
}
|
2019-08-07 14:53:59 -05:00
|
|
|
}
|