Bluz\Db\Query\CompositeBuilder::__construct PHP Method

__construct() public method

Constructor
public __construct ( array $parts = [], string $type = 'AND' )
$parts array parts of the composite expression
$type string AND|OR
    public function __construct(array $parts = [], $type = 'AND')
    {
        $this->type = strtoupper($type) == 'OR' ? 'OR' : 'AND';
        $this->add($parts);
    }