1 | <?php |
||
12 | abstract class AbstractEvent implements EventInterface |
||
13 | { |
||
14 | /** |
||
15 | * Please, define '@property' and use it using magic __get() method instead of using $this->payload. |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $payload; |
||
20 | |||
21 | /** |
||
22 | * @param $data |
||
23 | */ |
||
24 | public function setPayload($data): EventInterface |
||
30 | |||
31 | /** |
||
32 | * Magic get. |
||
33 | * |
||
34 | * @param $name |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function __get($name) |
||
46 | } |
||
47 |