Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
12 | class SimpleDomainEvent implements DomainEvent |
||
13 | { |
||
14 | private $entityId; |
||
15 | private $payload; |
||
16 | private $recordedOn; |
||
17 | |||
18 | public function __construct(EventPayload $payload, EntityIdentifier $entityId, DateTimeInterface $recordedOn) |
||
23 | } |
||
24 | |||
25 | public function getId(): EntityIdentifier |
||
26 | { |
||
27 | return $this->entityId; |
||
28 | } |
||
29 | |||
30 | public function getPayload(): EventPayload |
||
31 | { |
||
32 | return $this->payload; |
||
33 | } |
||
34 | |||
35 | public function getRecordedOn(): DateTimeInterface |
||
38 | } |
||
39 | } |
||
40 |