| 1 | <?php |
||
| 10 | abstract class SubEventStatusUpdated implements SerializableInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $eventId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Timestamp |
||
| 19 | */ |
||
| 20 | private $timestamp; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $reason; |
||
| 26 | |||
| 27 | final public function __construct(string $eventId, Timestamp $timestamp, string $reason) |
||
| 33 | |||
| 34 | public function serialize(): array |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return static |
||
| 45 | */ |
||
| 46 | public static function deserialize(array $data) |
||
| 54 | |||
| 55 | public function getEventId(): string |
||
| 59 | |||
| 60 | public function getTimestamp(): Timestamp |
||
| 64 | |||
| 65 | public function getReason(): string |
||
| 69 | } |
||
| 70 |