Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | return __DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'target'; |
||
28 | } |
||
29 | } |
||
30 | |||
31 | |||
32 | class XFailStorage extends \kalanis\kw_storage\Storage\Storage |
||
33 | { |
||
34 | public function write(string $sharedKey, $data, ?int $timeout = null): bool |
||
35 | { |
||
36 | throw new \kalanis\kw_storage\StorageException('mock'); |
||
37 | } |
||
38 | |||
39 | public function read(string $sharedKey) |
||
40 | { |
||
41 | throw new \kalanis\kw_storage\StorageException('mock'); |
||
42 | } |
||
43 | |||
44 | public function exists(string $sharedKey): bool |
||
45 | { |
||
46 | throw new \kalanis\kw_storage\StorageException('mock'); |
||
47 | } |
||
54 |