1 | <?php declare (strict_types=1); |
||
13 | final class TestEvent implements Event, Serializable |
||
14 | { |
||
15 | /** @var string */ |
||
16 | private $id; |
||
17 | |||
18 | /** |
||
19 | * TestEvent constructor. |
||
20 | * @param string $id |
||
21 | */ |
||
22 | public function __construct(string $id) |
||
26 | |||
27 | /** |
||
28 | * @return array |
||
29 | */ |
||
30 | public function serialize() |
||
34 | |||
35 | /** |
||
36 | * @param array $data |
||
37 | * @return static |
||
38 | */ |
||
39 | public static function deserialize(array $data) |
||
43 | } |
||
44 |