Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class DirThumb extends AFiles |
||
17 | { |
||
18 | use TToString; |
||
19 | |||
20 | /** |
||
21 | * @param string[] $path |
||
22 | * @throws FilesException |
||
23 | * @throws PathsException |
||
24 | * @return string|resource |
||
25 | */ |
||
26 | 2 | public function get(array $path) |
|
27 | { |
||
28 | 2 | return $this->lib->readFile($this->getPath($path)); |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param string[] $path |
||
33 | * @param string|resource $content |
||
34 | * @throws FilesException |
||
35 | * @throws PathsException |
||
36 | * @return bool |
||
37 | */ |
||
38 | 1 | public function set(array $path, $content): bool |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param string[] $whichDir |
||
45 | * @throws FilesException |
||
46 | * @throws PathsException |
||
47 | * @return bool |
||
48 | */ |
||
49 | 2 | public function delete(array $whichDir): bool |
|
53 | } |
||
54 | |||
55 | 3 | public function getPath(array $path): array |
|
58 | } |
||
59 | } |
||
60 |