| 1 | <?php |
||
| 7 | class Event extends SymfonyEvent |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | private $data; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $eventHook; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Event constructor. |
||
| 21 | * |
||
| 22 | * @param array $data |
||
| 23 | * @param string|null $eventHook |
||
| 24 | */ |
||
| 25 | public function __construct($data = [], string $eventHook = null) { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param array $data |
||
| 32 | * @param string|null $eventHook |
||
| 33 | * |
||
| 34 | * @return Event |
||
| 35 | */ |
||
| 36 | public static function create($data = [], string $eventHook = null) : Event { |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function getData() { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getEventHook() : string { |
||
| 53 | |||
| 54 | } |
||
| 55 |