Total Complexity | 2 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class IndexRename extends AbstractQuery |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $oldValue; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $newValue; |
||
22 | |||
23 | /** |
||
24 | * @var QueryInterface |
||
25 | */ |
||
26 | private $query; |
||
27 | |||
28 | public function __construct( |
||
29 | RethinkInterface $rethink, |
||
30 | QueryInterface $query, |
||
31 | string $oldValue, |
||
32 | string $newValue |
||
33 | ) { |
||
34 | parent::__construct($rethink); |
||
35 | |||
36 | $this->query = $query; |
||
37 | $this->rethink = $rethink; |
||
38 | |||
39 | $this->oldValue = $oldValue; |
||
40 | $this->newValue = $newValue; |
||
41 | } |
||
42 | |||
43 | public function toArray(): array |
||
56 | ], |
||
57 | ], |
||
61 |