We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function __construct($countryCode) |
||
| 21 | { |
||
| 22 | $shortName = ucfirst(strtolower($countryCode)).'Vatin'; |
||
| 23 | $className = __NAMESPACE__.'\\Locale\\'.$shortName; |
||
| 24 | if (!class_exists($className)) { |
||
| 25 | throw new ComponentException(sprintf('There is no support for VAT identification number from "%s"', $countryCode)); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->countryCode = $countryCode; |
||
| 29 | $this->validatable = new $className(); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |