A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.yiiframework.com/doc/api/2.0/yii-db-conditions-betweencondition below:

BetweenCondition, yii\db\conditions\BetweenCondition | API Documentation for Yii 2.0

Class yii\db\conditions\BetweenCondition

Class BetweenCondition represents a BETWEEN condition.

Method Details

Hide inherited methods

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

Source code

                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.

Source code

                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]);
}

            

Source code

                public function getColumn()
{
    return $this->column;
}

            

Source code

                public function getIntervalEnd()
{
    return $this->intervalEnd;
}

            

Source code

                public function getIntervalStart()
{
    return $this->intervalStart;
}

            

Source code

                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