1 | <?php |
||
9 | class FileSystem implements FileSystemInterface |
||
10 | { |
||
11 | /** |
||
12 | * @param $dirFullPath |
||
13 | * @return bool |
||
14 | */ |
||
15 | public function isDir($dirFullPath) |
||
19 | |||
20 | /** |
||
21 | * @param $dirFullPath |
||
22 | * @return bool |
||
23 | */ |
||
24 | public function createDir($dirFullPath) |
||
33 | |||
34 | /** |
||
35 | * @param $fileFullPath |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function isFile($fileFullPath) |
||
42 | |||
43 | /** |
||
44 | * @param $fileFullPath |
||
45 | * @param string $contents |
||
46 | */ |
||
47 | public function createFile($fileFullPath, $contents = '') |
||
54 | |||
55 | /** |
||
56 | * @param $fileFullPath |
||
57 | * @return bool |
||
58 | */ |
||
59 | public function isWritable($fileFullPath) |
||
75 | |||
76 | /** |
||
77 | * @param $fileFullPath |
||
78 | * @param string $contents |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function writeToFile($fileFullPath, $contents = '') |
||
103 | |||
104 | /** |
||
105 | * @param $fileFullPath |
||
106 | * @return string |
||
107 | */ |
||
108 | public function readFile($fileFullPath) |
||
120 | |||
121 | /** |
||
122 | * @param $fileFullPath |
||
123 | * @return resource |
||
124 | */ |
||
125 | public function openFileForReading($fileFullPath) |
||
129 | |||
130 | /** |
||
131 | * @param $handler |
||
132 | * @param int $limit |
||
133 | * @param string $separator |
||
134 | * @return array |
||
135 | */ |
||
136 | public function readFileLineAsCsv($handler, $limit = 0, $separator = '|') |
||
140 | |||
141 | public function rename($from, $to) |
||
145 | } |
||
146 |