Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function __construct($options = null) |
||
27 | { |
||
28 | parent::__construct($options); |
||
29 | |||
30 | if ($this->country != self::ALL && !in_array($this->country, IsoCodes\ZipCode::getAvailableCountries())) { |
||
31 | throw new ConstraintDefinitionException(sprintf( |
||
32 | 'The option "country" must be one of "%s" or "all"', |
||
33 | implode('", "', IsoCodes\ZipCode::getAvailableCountries()) |
||
34 | )); |
||
35 | } |
||
36 | } |
||
37 | |||
54 |