| 1 | <?php |
||
| 12 | class DummyTaskWasExecuted implements Event |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var AggregateRootId |
||
| 16 | */ |
||
| 17 | private $aggregateRootId; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var PointInTime |
||
| 21 | */ |
||
| 22 | private $timeOfRecording; |
||
| 23 | |||
| 24 | public function __construct(AggregateRootId $aggregateRootId, PointInTime $timeOfRecording) |
||
| 29 | |||
| 30 | public function aggregateRootId(): AggregateRootId |
||
| 34 | |||
| 35 | public function eventVersion(): int |
||
| 39 | |||
| 40 | public function timeOfRecording(): PointInTime |
||
| 44 | |||
| 45 | public function toPayload(): array |
||
| 49 | |||
| 50 | public static function fromPayload(array $payload, AggregateRootId $aggregateRootId, PointInTime $timeOfRecording): Event |
||
| 54 | } |