1 | <?php |
||
9 | class FilesystemEngine implements EngineInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var EncoderInterface |
||
13 | */ |
||
14 | protected $encoder; |
||
15 | |||
16 | protected $namespace; |
||
17 | |||
18 | 5 | public function __construct($path, EncoderInterface $encoder) |
|
23 | |||
24 | /** |
||
25 | * Get the EncoderInterface instance. |
||
26 | * |
||
27 | * @return EncoderInterface |
||
28 | */ |
||
29 | 1 | public function getEncoder() |
|
33 | |||
34 | 1 | public function put($document, $id, $collection) |
|
40 | |||
41 | 1 | public function get($id, $collection) |
|
47 | |||
48 | 1 | public function delete($id, $collection) |
|
52 | |||
53 | public function all($collection) |
||
57 | |||
58 | public function clear($collection) |
||
62 | |||
63 | 1 | public function init($collection) |
|
73 | |||
74 | 1 | public function has($id, $collection) |
|
78 | |||
79 | public function destroy($collection) |
||
84 | |||
85 | 4 | protected function path($id, $collection, $ext = '.data') |
|
89 | } |
||
90 |