| Conditions | 3 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | protected static function validTime(string $value, string $message = ''): void |
||
| 34 | { |
||
| 35 | if (filter_var($value, FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => self::$time_regex]]) === false) { |
||
| 36 | throw new InvalidArgumentException(sprintf( |
||
| 37 | $message ?: '\'%s\' is not a valid xs:time', |
||
| 38 | $value, |
||
| 39 | )); |
||
| 43 |