| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 12.5% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class GetCountriesResponse |
||
| 11 | { |
||
| 12 | public ArrayCollection $countries; |
||
| 13 | |||
| 14 | 3 | public function __construct(array $records = [] |
|
| 15 | //#[CastListToType(Country::class)] |
||
| 16 | ) { |
||
| 17 | 3 | $this->countries = new ArrayCollection($records); |
|
| 18 | } |
||
| 19 | |||
| 20 | |||
| 21 | public function findByName(string $name): ArrayCollection |
||
| 26 | }); |
||
| 27 | |||
| 28 | //return (!$collection->isEmpty()) ? $collection->first() : null; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function findByIsoAlpha2(string $isoAlpha2):?Country |
||
| 39 | } |
||
| 40 | |||
| 41 | public function findByIsoAlpha3(string $isoAlpha3):?Country |
||
| 52 |