Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
5 | class Categories implements \IteratorAggregate { |
||
6 | |||
7 | /** @var array<\App\Entities\Category> */ |
||
8 | private array $categories; |
||
9 | |||
10 | 2 | public function __construct( Category ...$categories ) { |
|
12 | 2 | } |
|
13 | |||
14 | /** |
||
15 | * {@inheritDoc} |
||
16 | */ |
||
17 | 1 | public function getIterator() { |
|
22 |