1 | <?php |
||
32 | trait FilesystemAwareTrait |
||
33 | { |
||
34 | /** |
||
35 | * @var FilesystemInterface |
||
36 | * @access protected |
||
37 | */ |
||
38 | protected $filesystem; |
||
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | */ |
||
43 | public function setFilesystem(FilesystemInterface $filesystem) |
||
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | public function getFilesystem()/*# : FilesystemInterface */ |
||
56 | |||
57 | /** |
||
58 | * Check filesystem readable or not |
||
59 | * |
||
60 | * @param string $path path to check |
||
61 | * @return bool |
||
62 | * @access protected |
||
63 | */ |
||
64 | protected function isFilesystemReadable(/*# string */ $path)/*# : bool */ |
||
75 | |||
76 | /** |
||
77 | * Check filesystem writable or not |
||
78 | * |
||
79 | * @param string $path path to check |
||
80 | * @return bool |
||
81 | * @access protected |
||
82 | */ |
||
83 | protected function isFilesystemWritable(/*# string */ $path)/*# : bool */ |
||
94 | |||
95 | /** |
||
96 | * Check filesystem file deletable or not |
||
97 | * |
||
98 | * @param string $path path to check |
||
99 | * @return bool |
||
100 | * @access protected |
||
101 | */ |
||
102 | protected function isFilesystemDeletable(/*# string */ $path)/*# : bool */ |
||
113 | |||
114 | abstract public function setError( |
||
118 | } |
||
119 |