| Total Complexity | 2 | 
| Total Lines | 21 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1);  | 
            ||
| 5 | class Categories implements \IteratorAggregate  | 
            ||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * @var Category[]  | 
            ||
| 9 | */  | 
            ||
| 10 | private $categories;  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * @param Category ...$categories  | 
            ||
| 14 | */  | 
            ||
| 15 | public function __construct(Category ...$categories)  | 
            ||
| 18 | }  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * @inheritdoc  | 
            ||
| 22 | */  | 
            ||
| 23 | public function getIterator()  | 
            ||
| 28 |