0 follower

Class yii\db\conditions\NotCondition

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

Condition that inverts passed \yii\db\conditions\condition.

Method Details

__construct() public method

NotCondition constructor.

public void __construct ( $condition )
$condition mixed

The condition to be negated

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.

getCondition() public method

public mixed getCondition ( )