1 | <?php |
||
12 | class DocumentStore implements \IteratorAggregate |
||
13 | { |
||
14 | /** |
||
15 | * @var EngineInterface |
||
16 | */ |
||
17 | protected $engine; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $namespace; |
||
23 | |||
24 | /** |
||
25 | * Create a DocumentStore instance. |
||
26 | * |
||
27 | * @param EngineInterface $engine |
||
28 | * @param string $namespace |
||
29 | */ |
||
30 | 13 | public function __construct(EngineInterface $engine, $namespace) |
|
35 | |||
36 | 1 | public function getNamespace() |
|
40 | |||
41 | public function getEngine() |
||
45 | |||
46 | 1 | public function truncate() |
|
50 | |||
51 | 3 | public function insert(DocumentInterface $document) |
|
66 | |||
67 | 2 | public function update(DocumentInterface $document) |
|
75 | |||
76 | 1 | public function remove($id) |
|
80 | |||
81 | 1 | public function find($id) |
|
85 | |||
86 | 3 | public function scan(callable $filter = null, $limit = null) |
|
104 | |||
105 | public function insertDocument($namespace) {} |
||
109 | |||
110 | 1 | protected function generateId() |
|
116 | |||
117 | public function getIterator() |
||
121 | } |
||
122 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.