NotCondition
in package
implements
ConditionInterface
Condition that inverts passed [[condition]].
Tags
Table of Contents
Interfaces
- ConditionInterface
- Interface ConditionInterface should be implemented by classes that represent a condition in DBAL of framework.
Properties
- $condition : mixed
Methods
- __construct() : mixed
- NotCondition constructor.
- fromArrayDefinition() : $this
- Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.
- getCondition() : mixed
Properties
$condition
private
mixed
$condition
the condition to be negated
Methods
__construct()
NotCondition constructor.
public
__construct(mixed $condition) : mixed
Parameters
- $condition : mixed
-
the condition to be negated
fromArrayDefinition()
Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.
public
static fromArrayDefinition(mixed $operator, mixed $operands) : $this
Parameters
- $operator : mixed
-
operator in uppercase.
- $operands : mixed
-
array of corresponding operands
Tags
Return values
$thisgetCondition()
public
getCondition() : mixed