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