Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | class Languages implements \IteratorAggregate, \Countable |
||
6 | { |
||
7 | /** |
||
8 | * @var Language[] |
||
9 | */ |
||
10 | private $languages; |
||
11 | |||
12 | public function __construct() |
||
13 | { |
||
14 | $this->languages = [ |
||
15 | new Language('nl'), |
||
16 | new Language('fr') |
||
17 | ]; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public function getIterator(): \ArrayIterator |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function count(): int |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return Language[] |
||
38 | */ |
||
39 | public function toArray(): array |
||
44 |