| 1 | <?php |
||
| 30 | trait EventPrototypeTrait |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * event prototype |
||
| 34 | * |
||
| 35 | * @var EventInterface |
||
| 36 | * @access protected |
||
| 37 | */ |
||
| 38 | protected $event_proto; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritDoc} |
||
| 42 | */ |
||
| 43 | public function setEventPrototype(EventInterface $eventPrototype = null) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Create an event |
||
| 51 | * |
||
| 52 | * @param string|EventInterface $event |
||
| 53 | * @param mixed $target |
||
| 54 | * @param array $parameters |
||
| 55 | * @return EventInterface |
||
| 56 | * @access protected |
||
| 57 | */ |
||
| 58 | protected function newEvent( |
||
| 76 | } |
||
| 77 |