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