Final Class Yiisoft\Db\QueryBuilder\Condition\OrX
| Inheritance | Yiisoft\Db\QueryBuilder\Condition\OrX |
|---|---|
| Implements | Yiisoft\Db\QueryBuilder\Condition\ConditionInterface |
Condition that connects two or more SQL expressions with the OR operator.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $expressions | array | Yiisoft\Db\QueryBuilder\Condition\OrX |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Db\QueryBuilder\Condition\OrX | |
| fromArrayDefinition() | Yiisoft\Db\QueryBuilder\Condition\OrX |
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.