| 1 |
<?php |
| 2 |
|
| 3 |
namespace Code_Snippets; |
| 4 |
|
| 5 |
interface File_System_Interface { |
| 6 |
public function put_contents( string $path, string $contents, $chmod ); |
| 7 |
public function exists( string $path ): bool; |
| 8 |
public function delete( $file, $recursive = false, $type = false ): bool; |
| 9 |
public function is_dir( string $path ): bool; |
| 10 |
public function mkdir( string $path, $chmod ); |
| 11 |
public function rmdir( string $path, bool $recursive = false ): bool; |
| 12 |
public function chmod( string $path, $chmod ): bool; |
| 13 |
public function is_writable( string $path ): bool; |
| 14 |
} |
| 15 |
|