PHP Class Doctrine\DBAL\Query\Expression\CompositeExpression

Since: 2.1
Author: Guilherme Blanco ([email protected])
Author: Benjamin Eberlei ([email protected])
Inheritance: implements Countable
ファイルを表示 Open project: doctrine/dbal Class Usage Examples

Public Methods

Method Description
__construct ( string $type, array $parts = [] ) Constructor.
__toString ( ) : string Retrieves the string representation of this composite expression.
add ( mixed $part ) : CompositeExpression Adds an expression to composite expression.
addMultiple ( array $parts = [] ) : CompositeExpression Adds multiple parts to composite expression.
count ( ) : integer Retrieves the amount of expressions on composite expression.
getType ( ) : string Returns the type of this composite expression (AND/OR).

Method Details

__construct() public method

Constructor.
public __construct ( string $type, array $parts = [] )
$type string Instance type of composite expression.
$parts array Composition of expressions to be joined on composite expression.

__toString() public method

Retrieves the string representation of this composite expression.
public __toString ( ) : string
return string

add() public method

Adds an expression to composite expression.
public add ( mixed $part ) : CompositeExpression
$part mixed
return CompositeExpression

addMultiple() public method

Adds multiple parts to composite expression.
public addMultiple ( array $parts = [] ) : CompositeExpression
$parts array
return CompositeExpression

count() public method

Retrieves the amount of expressions on composite expression.
public count ( ) : integer
return integer

getType() public method

Returns the type of this composite expression (AND/OR).
public getType ( ) : string
return string