| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function getValidator(string $countryCode): ?VatNumberValidatorInterface |
||
| 18 | { |
||
| 19 | /** @var VatNumberValidatorInterface $validator */ |
||
| 20 | foreach ($this->validators as $validator) { |
||
| 21 | if (in_array($countryCode, $validator->getCountries(), true)) { |
||
| 22 | return $validator; |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | return null; |
||
| 27 | } |
||
| 29 |