Total Complexity | 6 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class DefaultCountryFactory implements CountryFactory |
||
12 | { |
||
13 | /** @inheritDoc */ |
||
14 | 2 | public function create(array $data): Country |
|
25 | 2 | ); |
|
26 | } |
||
27 | |||
28 | /** @inheritDoc */ |
||
29 | 2 | public function createCollection(array $data): CountryCollection |
|
33 | 2 | ); |
|
34 | } |
||
35 | |||
36 | /** @inheritDoc */ |
||
37 | 2 | public function createCodeCollection(array $data): array |
|
38 | { |
||
39 | 2 | return $data['countries'] ?? []; |
|
40 | } |
||
41 | |||
42 | /** @inheritDoc */ |
||
43 | 2 | public function createCodCountryCollection(array $data): array |
|
55 | } |
||
56 | } |
||
57 |