Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class AggregateEventEmptyStream extends \EmptyIterator implements AggregateEventStream |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | * |
||
23 | * @return AggregateEvent |
||
24 | */ |
||
25 | public function current(): AggregateEvent |
||
26 | { |
||
27 | throw new AggregateEventStreamException('"Current" method must not be called on AggregateEventEmptyStream'); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function count(): int |
||
36 | } |
||
37 | } |
||
38 |