Final Class Yiisoft\Db\QueryBuilder\Condition\Not
| Inheritance | Yiisoft\Db\QueryBuilder\Condition\Not |
|---|---|
| Implements | Yiisoft\Db\QueryBuilder\Condition\ConditionInterface |
Condition that represents NOT operator (negation).
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $condition | Yiisoft\Db\Expression\ExpressionInterface|array|string|null | Yiisoft\Db\QueryBuilder\Condition\Not |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Db\QueryBuilder\Condition\Not | |
| fromArrayDefinition() | Creates a condition based on the given operator and operands. | Yiisoft\Db\QueryBuilder\Condition\Not |
Property Details
Method Details
| public mixed __construct ( array|Yiisoft\Db\Expression\ExpressionInterface|string|null $condition ) | ||
| $condition | array|Yiisoft\Db\Expression\ExpressionInterface|string|null |
The condition to negate. |
public function __construct(
public readonly ExpressionInterface|array|string|null $condition,
) {}
Creates a condition based on the given operator and operands.
| public static self fromArrayDefinition ( string $operator, array $operands ) | ||
| $operator | string | |
| $operands | array | |
| throws | InvalidArgumentException |
If the number of operands isn't 1. |
|---|---|---|
public static function fromArrayDefinition(string $operator, array $operands): self
{
return new self(self::validateCondition($operator, $operands));
}
Signup or Login in order to comment.