1 | <?php declare(strict_types = 1); |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
2 | |||
3 | namespace App\Entities; |
||
4 | |||
5 | /** @codeCoverageIgnore */ |
||
6 | class Examples implements \IteratorAggregate { |
||
7 | |||
8 | /** @var array<\App\Entities\Example> */ |
||
9 | private array $examples; |
||
10 | |||
11 | public function __construct( Example ...$examples ) { |
||
12 | $this->examples = $examples; |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * {@inheritDoc} |
||
17 | */ |
||
18 | public function getIterator() { |
||
19 | return new \ArrayIterator( $this->examples ); |
||
20 | } |
||
21 | |||
22 | } |
||
23 |