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