Skip to content
PHP Ecosystem
Explore

AndCondition

API reference › yii › db › conditions › AndCondition

classyii\db\conditions\AndCondition
ExtendsConjunctionCondition
ImplementsConditionInterface
Since2.0.14
Sourceframework/db/conditions/AndCondition.php

Condition that connects two or more SQL expressions with the AND operator.

PropertyTypeDescriptionDefined by
$expressions protectedmixed[]Default: null.ConjunctionCondition
MethodDescriptionDefined by
__construct()ConjunctionCondition
fromArrayDefinition() staticCreates object by array-definition as described in Query Builder – Operator format guide article.ConjunctionCondition
getExpressions()ConjunctionCondition
getOperator()Returns the operator that is represented by this condition class, e.g. AND, OR.AndCondition
public function getOperator(): string

Returns the operator that is represented by this condition class, e.g. AND, OR.

Returns

string