Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
25 | trait AssertFilenameExistsTrait |
||
26 | { |
||
27 | /** |
||
28 | * @param mixed $value |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | abstract protected static function valueToString($value): string; |
||
33 | |||
34 | /** |
||
35 | * Check filename exists and is readable |
||
36 | * |
||
37 | * @param string $value |
||
38 | * @param string $message |
||
39 | * |
||
40 | * @return void |
||
41 | * @throws InvalidArgumentException |
||
42 | */ |
||
43 | 94 | public static function assertFilenameExists(string $value, string $message = ''): void |
|
58 |