Passed
Push — master ( 694425...cb2fe4 )
by Marc
03:56
created

AbstractAggregation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A orderBy() 0 3 1
A limit() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace TBolier\RethinkQL\Query\Aggregation;
5
6
use TBolier\RethinkQL\Query\AbstractQuery;
7
8
abstract class AbstractAggregation extends AbstractQuery implements AggregationInterface
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    public function limit($value): AggregationInterface
14
    {
15
        return new Limit($this->rethink, $this->message, $this, $value);
16
    }
17
18
    /**
19
     * @inheritdoc
20
     */
21
    public function orderBy($key): AggregationInterface
22
    {
23
        return new OrderBy($this->rethink, $this->message, $this, $key);
24
    }
25
}
26