Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
9 | class SimpleEventStream implements EventStream |
||
10 | { |
||
11 | private $events; |
||
12 | |||
13 | /** |
||
14 | * SimpleEventStream constructor. |
||
15 | * |
||
16 | * @param DomainEvent[] $events |
||
17 | */ |
||
18 | public function __construct(array $events) |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return Traversable|DomainEvent[] |
||
25 | */ |
||
26 | public function getIterator(): Traversable |
||
31 |