| 1 | <?php |
||
| 20 | abstract class Event implements DomainObject |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | abstract public function getPayload(); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return Id |
||
| 29 | */ |
||
| 30 | abstract public function getDomainId(): Id; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getType(): string |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function jsonSerialize() |
||
| 57 | } |
||
| 58 |