Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | abstract class AStorage |
||
17 | { |
||
18 | use TLines; |
||
19 | |||
20 | /** |
||
21 | * @param string[] $path |
||
22 | * @throws AuthSourcesException |
||
23 | * @return array<int, array<int, string>> |
||
24 | */ |
||
25 | 33 | public function read(array $path): array |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param string[] $path |
||
33 | * @throws AuthSourcesException |
||
34 | * @return string |
||
35 | */ |
||
36 | abstract protected function open(array $path): string; |
||
37 | |||
38 | /** |
||
39 | * @param string[] $path |
||
40 | * @param array<int, array<int, string|int>> $lines |
||
41 | * @throws AuthSourcesException |
||
42 | * @return bool |
||
43 | */ |
||
44 | 12 | public function write(array $path, array $lines): bool |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param string[] $path |
||
51 | * @param string $data |
||
52 | * @throws AuthSourcesException |
||
53 | * @return bool |
||
54 | */ |
||
55 | abstract protected function save(array $path, string $data): bool; |
||
56 | } |
||
57 |