| 1 | <?php declare(strict_types = 1); |
||
| 5 | class Filesystem |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Read the file contents of the given file. |
||
| 9 | * |
||
| 10 | * @param string $filename |
||
| 11 | * @return string |
||
| 12 | */ |
||
| 13 | public function read(string $filename): string |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Write the given contents to the given file. |
||
| 20 | * |
||
| 21 | * @param string $filename |
||
| 22 | * @param string $contents |
||
| 23 | * @return int |
||
| 24 | */ |
||
| 25 | public function write(string $filename, string $contents): int |
||
| 29 | } |
||
| 30 |