PHP Class Doctrine\DBAL\Query\Expression\CompositeExpression

Since: 2.1
Author: Guilherme Blanco ([email protected])
Author: Benjamin Eberlei ([email protected])
Inheritance: implements Countable
Afficher le fichier Open project: doctrine/dbal Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

Retrieves the string representation of this composite expression.
public __toString ( ) : string
Résultat string

add() public méthode

Adds an expression to composite expression.
public add ( mixed $part ) : CompositeExpression
$part mixed
Résultat CompositeExpression

addMultiple() public méthode

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

count() public méthode

Retrieves the amount of expressions on composite expression.
public count ( ) : integer
Résultat integer

getType() public méthode

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