ConjunctionCondition
API reference › yii › db › conditions › ConjunctionCondition
2 subclasses
Class ConjunctionCondition
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$expressions protected | mixed[] | Default: null. | ConjunctionCondition |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | ConjunctionCondition | |
fromArrayDefinition() static | Creates object by array-definition as described in Query Builder – Operator format guide article. | ConjunctionCondition |
getExpressions() | ConjunctionCondition | |
getOperator() abstract | Returns the operator that is represented by this condition class, e.g. AND, OR. | ConjunctionCondition |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(mixed $expressions)Parameters
| Parameter | Type | Description |
|---|---|---|
$expressions | mixed |
fromArrayDefinition()
Section titled “fromArrayDefinition() ”public static function fromArrayDefinition(mixed $operator, mixed $operands): staticCreates object by array-definition as described in Query Builder – Operator format guide article.
Parameters
| Parameter | Type | Description |
|---|---|---|
$operator | mixed | Operator in uppercase. |
$operands | mixed | Array of corresponding operands |
Returns
static
Throws
InvalidArgumentException: if input parameters are not suitable for this condition
getExpressions()
Section titled “getExpressions() ”public function getExpressions(): mixed[]Returns
mixed[]
getOperator()
Section titled “getOperator() ”abstract public function getOperator(): stringReturns the operator that is represented by this condition class, e.g. AND, OR.
Returns
string