| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function __construct(string $name, Dictionary ...$dictionaries) |
||
| 20 | 9 | { |
|
| 21 | 9 | parent::__construct( |
|
| 22 | 6 | new Invokable($name, function () use ($dictionaries): array { |
|
| 23 | $data = []; |
||
| 24 | 6 | ||
| 25 | 6 | foreach ($dictionaries as $dictionary) { |
|
| 26 | $data = $this->merge($data, iterator_to_array($dictionary)); |
||
| 27 | } |
||
| 28 | 6 | ||
| 29 | 9 | return $data; |
|
| 30 | }) |
||
| 57 |