Final Class Yiisoft\Db\QueryBuilder\Condition\AndX
| Inheritance | Yiisoft\Db\QueryBuilder\Condition\AndX |
|---|---|
| Implements | Yiisoft\Db\QueryBuilder\Condition\ConditionInterface |
Condition that connects two or more SQL expressions with the AND operator.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $expressions | array | Yiisoft\Db\QueryBuilder\Condition\AndX |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Db\QueryBuilder\Condition\AndX | |
| fromArrayDefinition() | Yiisoft\Db\QueryBuilder\Condition\AndX |
Property Details
Method Details
| public mixed __construct ( array|boolean|Yiisoft\Db\Expression\ExpressionInterface|float|integer|string $expressions ) | ||
| $expressions | array|boolean|Yiisoft\Db\Expression\ExpressionInterface|float|integer|string |
The expressions that are connected by this condition. |
public function __construct(
array|ExpressionInterface|int|float|bool|string ...$expressions,
) {
$this->expressions = $expressions;
}
| public static self fromArrayDefinition ( string $operator, array $operands ) | ||
| $operator | string | |
| $operands | array | |
public static function fromArrayDefinition(string $operator, array $operands): self
{
/** @psalm-var array<array|ExpressionInterface|scalar> $operands */
return new self(...$operands);
}
Signup or Login in order to comment.