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