for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the jquery-querybuilder-bundle package.
*
* (c) 2019 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\JQuery\QueryBuilderBundle\Decorator\Operator;
use WBW\Bundle\JQuery\QueryBuilderBundle\API\QueryBuilderConditionInterface;
use WBW\Bundle\JQuery\QueryBuilderBundle\API\QueryBuilderRuleInterface;
use WBW\Bundle\JQuery\QueryBuilderBundle\Decorator\Type\ArrayQueryBuilderType;
/**
* Not between QueryBuilder operator.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\JQuery\QueryBuilderBundle\Decorator\Operator
class NotBetweenQueryBuilderOperator extends AbstractQueryBuilderOperator implements QueryBuilderConditionInterface {
* Constructor.
public function __construct() {
parent::__construct(self::OPERATOR_NOT_BETWEEN);
}
* {@inheritDoc}
public function toSQL(QueryBuilderRuleInterface $rule, $wrap = false) {
$qbt = new ArrayQueryBuilderType();
$sql = [
parent::toSQL($rule, $wrap),
implode(" " . self::CONDITION_AND . " ", $qbt->toSQL($rule, true)),
];
return implode(" ", $sql);