Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Insert extends AbstractQuery |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $documents; |
||
17 | /** |
||
18 | * @var QueryInterface |
||
19 | */ |
||
20 | private $query; |
||
21 | |||
22 | public function __construct( |
||
23 | RethinkInterface $rethink, |
||
24 | QueryInterface $query, |
||
25 | array $documents |
||
26 | ) { |
||
27 | parent::__construct($rethink); |
||
28 | |||
29 | 9 | $this->query = $query; |
|
30 | $this->documents = [$documents]; |
||
31 | $this->rethink = $rethink; |
||
32 | } |
||
33 | |||
34 | public function toArray(): array |
||
48 | 9 | ], |
|
49 | 9 | ], |
|
53 |