Total Complexity | 6 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | trait OperationTrait |
||
10 | { |
||
11 | /** |
||
12 | * @inheritdoc |
||
13 | */ |
||
14 | public function delete(): QueryInterface |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @inheritdoc |
||
21 | */ |
||
22 | public function filter($value) |
||
23 | { |
||
24 | if ($value instanceof Row) { |
||
25 | return new FilterByRow($this->rethink, $this, $value); |
||
26 | } |
||
27 | |||
28 | return new Filter($this->rethink, $this, $value); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | public function getAll(...$keys): GetAll |
||
35 | { |
||
36 | return new GetAll($this->rethink, $this, $keys); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function update(array $elements): QueryInterface |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function insert(array $document): QueryInterface |
||
55 |