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