Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
25 | trait AssertArrayTrait |
||
26 | { |
||
27 | /** |
||
28 | * @param mixed $value |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | abstract protected static function valueToString($value): string; |
||
33 | |||
34 | /** |
||
35 | * Check value is an array |
||
36 | * |
||
37 | * @param mixed $value |
||
38 | * @param string $message |
||
39 | */ |
||
40 | 15 | public static function assertArray($value, string $message = ''): void |
|
49 |