0 follower

Class yii\db\conditions\SimpleCondition

Inheritanceyii\db\conditions\SimpleCondition
Implementsyii\db\conditions\ConditionInterface
Subclassesyii\db\conditions\LikeCondition
Available since version2.0.14
Source Code https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/SimpleCondition.php

Class SimpleCondition represents a simple condition like "column" operator value.

Method Details

__construct() public method

SimpleCondition constructor

public void __construct ( $column, $operator, $value )
$column mixed

The literal to the left of $operator

$operator string

The operator to use. Anything could be used e.g. >, <=, etc.

$value mixed

The literal to the right of $operator

fromArrayDefinition() public static method

{@inheritdoc}

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

if wrong number of operands have been given.

getColumn() public method

public mixed getColumn ( )
getOperator() public method

public string getOperator ( )
getValue() public method

public mixed getValue ( )