1 | <?php |
||
9 | class UpcastedEventStub implements Event |
||
10 | { |
||
11 | /** |
||
12 | * @var AggregateRootId |
||
13 | */ |
||
14 | private $aggregateRootId; |
||
15 | |||
16 | /** |
||
17 | * @var PointInTime |
||
18 | */ |
||
19 | private $timeOfRecording; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $property; |
||
25 | |||
26 | 1 | public function __construct(AggregateRootId $aggregateRootId, PointInTime $timeOfRecording, string $property) |
|
32 | |||
33 | 1 | public function aggregateRootId(): AggregateRootId |
|
37 | |||
38 | 1 | public function eventVersion(): int |
|
42 | |||
43 | 1 | public function timeOfRecording(): PointInTime |
|
47 | |||
48 | 1 | public function toPayload(): array |
|
52 | |||
53 | 1 | public static function fromPayload(array $payload, AggregateRootId $aggregateRootId, PointInTime $timeOfRecording): Event |
|
57 | } |