Class yii\db\conditions\NotCondition
Inheritance | yii\db\conditions\NotCondition |
---|---|
Implements | yii\db\conditions\ConditionInterface |
Available since version | 2.0.14 |
Source Code | https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/NotCondition.php |
Condition that inverts passed \yii\db\conditions\condition.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | NotCondition constructor. | yii\db\conditions\NotCondition |
fromArrayDefinition() | {@inheritdoc} | yii\db\conditions\NotCondition |
getCondition() | yii\db\conditions\NotCondition |
Method Details
NotCondition constructor.
public void __construct ( $condition ) | ||
$condition | mixed | The condition to be negated |
{@inheritdoc}
public static void fromArrayDefinition ( $operator, $operands ) | ||
$operator | ||
$operands | ||
throws | yii\base\InvalidArgumentException | if wrong number of operands have been given. |
---|
public mixed getCondition ( ) |