| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 26 | protected static function validDomain(string $value, string $message = ''): void | ||
| 27 |     { | ||
| 28 |         try { | ||
| 29 | parent::regex( | ||
| 30 | $value, | ||
| 31 | self::$domain_regex, | ||
| 32 | $message ?: '%s is not a valid domain name', | ||
| 33 | ); | ||
| 34 |         } catch (AssertionFailedException $e) { | ||
| 35 | throw new ProtocolViolationException($e->getMessage()); | ||
| 36 | } | ||
| 39 |