| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class OrderBy extends AbstractQuery |
||
| 13 | { |
||
| 14 | use TransformationTrait; |
||
| 15 | use OperationTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var mixed|QueryInterface |
||
| 19 | */ |
||
| 20 | private $key; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var QueryInterface |
||
| 24 | */ |
||
| 25 | private $query; |
||
| 26 | |||
| 27 | public function __construct( |
||
| 28 | RethinkInterface $rethink, |
||
| 29 | QueryInterface $query, |
||
| 30 | $key |
||
| 31 | ) { |
||
| 32 | parent::__construct($rethink); |
||
| 33 | |||
| 34 | $this->query = $query; |
||
| 35 | $this->key = $key; |
||
| 36 | $this->rethink = $rethink; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function toArray(): array |
||
| 48 | ], |
||
| 49 | ]; |
||
| 52 |