Class BetweenCondition represents a BETWEEN
condition.
Creates a condition with the BETWEEN
operator.
The literal to the left of $operator
$operator stringThe operator to use (e.g. BETWEEN
or NOT BETWEEN
)
Beginning of the interval
$intervalEnd mixedEnd of the interval
public function __construct($column, $operator, $intervalStart, $intervalEnd)
{
$this->column = $column;
$this->operator = $operator;
$this->intervalStart = $intervalStart;
$this->intervalEnd = $intervalEnd;
}
Creates object by array-definition as described in Query Builder – Operator format guide article.
public static function fromArrayDefinition($operator, $operands)
{
if (!isset($operands[0], $operands[1], $operands[2])) {
throw new InvalidArgumentException("Operator '$operator' requires three operands.");
}
return new static($operands[0], $operator, $operands[1], $operands[2]);
}
public function getColumn()
{
return $this->column;
}
public function getIntervalEnd()
{
return $this->intervalEnd;
}
public function getIntervalStart()
{
return $this->intervalStart;
}
public function getOperator()
{
return $this->operator;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4