Total Complexity | 2 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class IndexRename extends AbstractQuery |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $oldValue; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $newValue; |
||
23 | |||
24 | /** |
||
25 | * @var QueryInterface |
||
26 | */ |
||
27 | private $query; |
||
28 | |||
29 | /** |
||
30 | * @param RethinkInterface $rethink |
||
31 | * @param MessageInterface $message |
||
32 | * @param QueryInterface $query |
||
33 | * @param string $oldValue |
||
34 | * @param string $newValue |
||
35 | */ |
||
36 | public function __construct( |
||
37 | RethinkInterface $rethink, |
||
38 | MessageInterface $message, |
||
39 | QueryInterface $query, |
||
40 | string $oldValue, |
||
41 | string $newValue |
||
42 | ) { |
||
43 | parent::__construct($rethink, $message); |
||
44 | |||
45 | $this->query = $query; |
||
46 | $this->rethink = $rethink; |
||
47 | $this->message = $message; |
||
48 | $this->oldValue = $oldValue; |
||
49 | $this->newValue = $newValue; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function toArray(): array |
||
68 | ], |
||
69 | ], |
||
73 |