| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class FileSystem implements FileSystemInterface |
||
| 12 | { |
||
| 13 | use DirectoryHelper { |
||
| 14 | make as protected; |
||
| 15 | rm as protected; |
||
| 16 | rmdirs as protected; |
||
| 17 | move as moveDir; |
||
| 18 | copy as copyDir; |
||
| 19 | } |
||
| 20 | |||
| 21 | use FileHelper { |
||
| 22 | delete as protected deleteFile; |
||
| 23 | FileHelper::copy insteadof DirectoryHelper; |
||
| 24 | FileHelper::move insteadof DirectoryHelper; |
||
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * 删除文件或者目录 |
||
| 31 | * |
||
| 32 | * @param string $path |
||
| 33 | * @return boolean |
||
| 34 | */ |
||
| 35 | public static function delete(string $path):bool |
||
| 49 |