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

AbstractAggregation::limit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 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