1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<?php
namespace ICanBoogie\View\View;
use ICanBoogie\Event;
use ICanBoogie\View\View;
/**
* Event class for the `ICanBoogie\View\View::render:before` event.
*
* Event hooks may use this event to alter the view before it is rendered, or provide a cached
* result.
*/
class BeforeRenderEvent extends Event
{
const TYPE = 'render:before';
/**
* @var string
*/
public $result;
/**
* @param View $target
* @param string $result
*/
public function __construct(View $target, &$result)
{
$this->result = &$result;
parent::__construct($target, self::TYPE);
}
}