Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | class SimpleAggregateHistory implements EntityHistory |
||
11 | { |
||
12 | private $events; |
||
13 | private $id; |
||
14 | |||
15 | public function __construct(EntityIdentifier $id, EventStream $events) |
||
16 | { |
||
17 | $this->id = $id; |
||
18 | $this->events = $events; |
||
19 | } |
||
20 | |||
21 | public function getId(): EntityIdentifier |
||
22 | { |
||
23 | return $this->id; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return Traversable|DomainEvent[] |
||
28 | */ |
||
29 | public function getIterator(): Traversable |
||
32 | } |
||
33 | } |
||
34 |