Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | abstract class AbstractTransformationCompound extends AbstractOperation implements TransformationCompoundInterface |
||
11 | { |
||
12 | /** |
||
13 | * @param string $field |
||
14 | * @return TransformationCompoundInterface |
||
15 | */ |
||
16 | public function getField(string $field): TransformationCompoundInterface |
||
17 | { |
||
18 | return new GetFieldLogic($this->rethink, $field, $this); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @inheritdoc |
||
23 | */ |
||
24 | public function isEmpty(): QueryInterface |
||
25 | { |
||
26 | return new IsEmpty($this->rethink, $this); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | public function limit($value): TransformationCompoundInterface |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | public function skip($value): TransformationCompoundInterface |
||
41 | { |
||
42 | return new Skip($this->rethink, $this, $value); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | public function orderBy($key): TransformationCompoundInterface |
||
51 | } |
||
52 | } |
||
53 |