| Total Complexity | 7 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | class NullFilesystem implements FilesystemInterface |
||
| 29 | { |
||
| 30 | public function getAbsolutePath(string $path): string |
||
| 31 | { |
||
| 32 | return $path; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function exists(string $path): bool |
||
| 36 | { |
||
| 37 | return false; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function mkdir(string $path): void |
||
| 41 | { |
||
| 42 | } |
||
| 43 | |||
| 44 | public function isFile(string $path): bool |
||
| 47 | } |
||
| 48 | |||
| 49 | public function readFile(string $path): FileInterface |
||
| 50 | { |
||
| 51 | throw new UnableToReadFileException("Unable to read $path from void filesystem."); |
||
| 52 | } |
||
| 53 | |||
| 54 | public function readDir(string $path): iterable |
||
| 57 | } |
||
| 58 | |||
| 59 | public function writeFile(FileInterface $file): void |
||
| 60 | { |
||
| 63 |