| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public static function addValidator(string $code, string $validator): void |
||
| 21 | { |
||
| 22 | if (! new $validator instanceof CountryLandlineValidator) { |
||
| 23 | throw new RuntimeException('The validator is not instance of CountryLandlineValidator'); |
||
| 24 | } |
||
| 25 | |||
| 26 | self::$validators[$code] = $validator; |
||
| 27 | } |
||
| 41 |