Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | trait QNameTrait |
||
15 | { |
||
16 | /** @var string */ |
||
17 | private static string $qname_regex = '/^([\p{L}a-zA-Z-][\w.-]*)(:[\p{L}a-zA-Z-][\w.-]*)$/Du'; |
||
18 | |||
19 | /*********************************************************************************** |
||
20 | * NOTE: Custom assertions may be added below this line. * |
||
21 | * They SHOULD be marked as `protected` to ensure the call is forced * |
||
22 | * through __callStatic(). * |
||
23 | * Assertions marked `public` are called directly and will * |
||
24 | * not handle any custom exception passed to it. * |
||
25 | ***********************************************************************************/ |
||
26 | |||
27 | |||
28 | /** |
||
29 | * @param string $value |
||
30 | * @param string $message |
||
31 | */ |
||
32 | protected static function validQName(string $value, string $message = ''): void |
||
45 |