| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class IoException extends \RuntimeException |
||
| 7 | { |
||
| 8 | public static function cannotWriteFile(string $fileName): self |
||
| 9 | { |
||
| 10 | return new self(sprintf( |
||
| 11 | 'Failed to write file %s', |
||
| 12 | $fileName |
||
| 13 | )); |
||
| 14 | } |
||
| 15 | |||
| 16 | public static function cannotCreateDirectory(string $dirName, string $message): self |
||
| 22 | )); |
||
| 23 | } |
||
| 25 |