Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class FileSystemException extends BaseException |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * @param string $name |
||
28 | * @return FileSystemException |
||
29 | */ |
||
30 | public static function directoryNotExists(string $name): FileSystemException |
||
31 | { |
||
32 | return new static(t('exception.directory_not_exist', $name), E_WARNING); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $name |
||
37 | * @return FileSystemException |
||
38 | */ |
||
39 | public static function directoryNotWritable(string $name): FileSystemException |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return FileSystemException |
||
46 | */ |
||
47 | public static function fileAlreadyExists(): FileSystemException |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return FileSystemException |
||
54 | */ |
||
55 | public static function incorrectTokenService(): FileSystemException |
||
58 | } |
||
59 | } |