0 follower

Final Class Yiisoft\Db\Expression\CompositeExpression

InheritanceYiisoft\Db\Expression\CompositeExpression
ImplementsYiisoft\Db\Expression\ExpressionInterface

Represents a composite expression consisting of multiple expressions.

Property Details

Hide inherited properties

$expressions public property
public array $expressions null
$separator public property
public string $separator ' '

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( (Yiisoft\Db\Expression\ExpressionInterface|string)[] $expressions, string $separator ' ' )
$expressions (Yiisoft\Db\Expression\ExpressionInterface|string)[]

The expressions to be combined. String values are treated as a DB expression that doesn't need escaping or quoting.

$separator string

The separator to use when concatenating the expressions. Defaults to a space character.

                public function __construct(
    public readonly array $expressions,
    public readonly string $separator = ' ',
) {}