| 1 | <?php declare(strict_types = 1); |
||
| 11 | class MutationErrorCollection implements Countable, IteratorAggregate |
||
| 12 | { |
||
| 13 | /** @var ShowableMutationError[] */ |
||
| 14 | protected $errors = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ShowableMutationError[] $errorDomainEvents |
||
| 18 | */ |
||
| 19 | 9 | public function __construct(array $errorDomainEvents) |
|
| 23 | |||
| 24 | 9 | public function count(): int |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return ShowableMutationError[] |
||
| 31 | */ |
||
| 32 | 5 | public function getAll(): array |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return Iterator|ShowableMutationError[] |
||
| 39 | */ |
||
| 40 | public function getIterator(): Iterator |
||
| 44 | } |
||
| 45 |