0 follower

Final Class Yiisoft\Db\QueryBuilder\Condition\OrX

InheritanceYiisoft\Db\QueryBuilder\Condition\OrX
ImplementsYiisoft\Db\QueryBuilder\Condition\ConditionInterface

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

Public Properties

Hide inherited properties

Property Type Description Defined By
$expressions array Yiisoft\Db\QueryBuilder\Condition\OrX

Property Details

Hide inherited properties

$expressions public property
public array $expressions null

Method Details

Hide inherited methods

__construct() public method

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;
}

            
fromArrayDefinition() public static method

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);
}