| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Limit extends AbstractQuery |
||
| 14 | { |
||
| 15 | use AggregationTrait; |
||
| 16 | use OperationTrait; |
||
| 17 | use TransformationTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $n; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var QueryInterface |
||
| 26 | */ |
||
| 27 | private $query; |
||
| 28 | |||
| 29 | public function __construct( |
||
| 30 | RethinkInterface $rethink, |
||
| 31 | QueryInterface $query, |
||
| 32 | int $n |
||
| 33 | ) { |
||
| 34 | parent::__construct($rethink); |
||
| 35 | |||
| 36 | $this->query = $query; |
||
| 37 | $this->n = $n; |
||
| 38 | $this->rethink = $rethink; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function toArray(): array |
||
| 50 | ], |
||
| 51 | ], |
||
| 55 |