1 | <?php |
||
12 | class DummyIncrementingHappened implements Event |
||
13 | { |
||
14 | /** |
||
15 | * @var AggregateRootId |
||
16 | */ |
||
17 | private $aggregateRootId; |
||
18 | |||
19 | /** |
||
20 | * @var PointInTime |
||
21 | */ |
||
22 | private $timeOfRecording; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $number; |
||
28 | |||
29 | public function __construct(AggregateRootId $aggregateRootId, PointInTime $timeOfRecording, int $number) |
||
35 | |||
36 | public function aggregateRootId(): AggregateRootId |
||
40 | |||
41 | public function eventVersion(): int |
||
45 | |||
46 | public function timeOfRecording(): PointInTime |
||
50 | |||
51 | public function toPayload(): array |
||
55 | |||
56 | public static function fromPayload(array $payload, AggregateRootId $aggregateRootId, PointInTime $timeOfRecording): Event |
||
60 | |||
61 | public function number(): int |
||
65 | } |