Total Complexity | 6 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | trait OperationTrait |
||
10 | { |
||
11 | public function delete(): QueryInterface |
||
14 | } |
||
15 | |||
16 | public function filter($value) |
||
17 | { |
||
18 | if ($value instanceof Row) { |
||
19 | return new FilterByRow($this->rethink, /** @scrutinizer ignore-type */ $this, $value); |
||
20 | } |
||
21 | |||
22 | return new Filter($this->rethink, /** @scrutinizer ignore-type */ $this, $value); |
||
23 | } |
||
24 | |||
25 | public function getAll(...$keys): GetAll |
||
26 | { |
||
27 | return new GetAll($this->rethink, /** @scrutinizer ignore-type */ $this, $keys); |
||
28 | } |
||
29 | |||
30 | public function update(array $elements): QueryInterface |
||
33 | } |
||
34 | |||
35 | public function insert(array $document): QueryInterface |
||
40 |