for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TBolier\RethinkQL\Query\Logic;
use TBolier\RethinkQL\Query\AbstractQuery;
use TBolier\RethinkQL\Query\Operation\OperationTrait;
use TBolier\RethinkQL\Query\QueryInterface;
use TBolier\RethinkQL\RethinkInterface;
use TBolier\RethinkQL\Types\Term\TermType;
class LowerThanLogic extends AbstractQuery
{
use OperationTrait;
/**
* @var QueryInterface
*/
private $query;
* @var mixed
private $value;
public function __construct(
RethinkInterface $rethink,
QueryInterface $query,
$value
) {
parent::__construct($rethink);
$this->value = $value;
$this->rethink = $rethink;
$this->query = $query;
}
public function toArray(): array
return
[
TermType::LT,
$this->query->toArray(),
$this->value,
],
];