AndCondition
extends ConjunctionCondition
in package
Condition that connects two or more SQL expressions with the `AND` operator.
Tags
Table of Contents
Properties
- $expressions : array<string|int, mixed>
Methods
- __construct() : mixed
- fromArrayDefinition() : $this
- Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.
- getExpressions() : array<string|int, mixed>
- getOperator() : string
- Returns the operator that is represented by this condition class, e.g. `AND`, `OR`.
Properties
$expressions
protected
array<string|int, mixed>
$expressions
Methods
__construct()
public
__construct(mixed $expressions) : mixed
Parameters
- $expressions : mixed
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
Return values
$thisgetExpressions()
public
getExpressions() : array<string|int, mixed>
Return values
array<string|int, mixed>getOperator()
Returns the operator that is represented by this condition class, e.g. `AND`, `OR`.
public
getOperator() : string