Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | trait AssertTemplateFormatTrait |
||
27 | { |
||
28 | use ValueToStringTrait; |
||
29 | use AssertOneOfTrait; |
||
30 | |||
31 | /** |
||
32 | * Check value is a valid template format |
||
33 | * |
||
34 | * @param string $value |
||
35 | * @param string $message |
||
36 | * |
||
37 | * @return void |
||
38 | * @throws InvalidArgumentException |
||
39 | */ |
||
40 | 52 | public static function assertTemplateFormat(string $value, string $message = ''): void |
|
50 |