| 1 | <?php |
||
| 10 | class FileSystemWriter implements FileSystemWriterInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var FileSystemPathInterface |
||
| 14 | */ |
||
| 15 | private $path; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * FileSystemWriter constructor. |
||
| 19 | * @param FileSystemPathInterface $path |
||
| 20 | */ |
||
| 21 | public function __construct(FileSystemPathInterface $path) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritDoc |
||
| 28 | */ |
||
| 29 | public function isWritable(): bool |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritDoc |
||
| 36 | */ |
||
| 37 | public function write(string $content) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @throws FileSystemException |
||
| 45 | * @throws InvalidPathException |
||
| 46 | */ |
||
| 47 | public function validate() |
||
| 57 | } |
||
| 58 |