Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class FileSystemException extends AppException |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @param string $name |
||
26 | * @return \Quantum\Exceptions\FileSystemException |
||
27 | */ |
||
28 | public static function directoryNotExists(string $name): FileSystemException |
||
29 | { |
||
30 | return new static(t('exception.directory_not_exist', $name), E_WARNING); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param string $name |
||
35 | * @return \Quantum\Exceptions\FileSystemException |
||
36 | */ |
||
37 | public static function directoryNotWritable(string $name): FileSystemException |
||
38 | { |
||
39 | return new static(t('exception.directory_not_writable', $name), E_WARNING); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return \Quantum\Exceptions\FileSystemException |
||
44 | */ |
||
45 | public static function fileAlreadyExists(): FileSystemException |
||
48 | } |
||
49 | |||
50 | } |
||
51 |