Total Complexity | 2 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class Skip extends AbstractAggregation |
||
12 | { |
||
13 | /** |
||
14 | * @var int |
||
15 | */ |
||
16 | private $n; |
||
17 | |||
18 | /** |
||
19 | * @var QueryInterface |
||
20 | */ |
||
21 | private $query; |
||
22 | |||
23 | /** |
||
24 | * @param RethinkInterface $rethink |
||
25 | * @param MessageInterface $message |
||
26 | * @param QueryInterface $query |
||
27 | * @param $n |
||
28 | */ |
||
29 | public function __construct( |
||
30 | RethinkInterface $rethink, |
||
31 | MessageInterface $message, |
||
32 | QueryInterface $query, |
||
33 | int $n |
||
34 | ) { |
||
35 | parent::__construct($rethink, $message); |
||
36 | |||
37 | $this->query = $query; |
||
38 | $this->n = $n; |
||
39 | $this->rethink = $rethink; |
||
40 | $this->message = $message; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function toArray(): array |
||
55 | ], |
||
56 | ], |
||
60 |