Class yii\db\conditions\BetweenCondition

Available since version2.0.14
Source Code

Class BetweenCondition represents a BETWEEN condition.

Method Details

__construct() public method

Creates a condition with the BETWEEN operator.

public void __construct ( $column, $operator, $intervalStart, $intervalEnd )
$column mixed

The literal to the left of $operator

$operator string

The operator to use (e.g. BETWEEN or NOT BETWEEN)

$intervalStart mixed

Beginning of the interval

$intervalEnd mixed

End of the interval

fromArrayDefinition() public static method


public static void fromArrayDefinition ( $operator, $operands )
throws yii\base\InvalidArgumentException

if wrong number of operands have been given.

getColumn() public method

public mixed getColumn ( )
getIntervalEnd() public method

public mixed getIntervalEnd ( )
getIntervalStart() public method

public mixed getIntervalStart ( )
getOperator() public method

public string getOperator ( )