PHP Class Bluz\Db\Query\CompositeBuilder

Inheritance: implements Countable
Show file Open project: bluzphp/framework

Public Methods

Method Description
__construct ( array $parts = [], string $type = 'AND' ) Constructor
__toString ( ) : string Retrieve the string representation of this composite expression.
add ( mixed $parts ) : CompositeBuilder Adds an expression to composite expression.
count ( ) : integer Retrieves the amount of expressions on composite expression.
getType ( ) : string Return type of this composite

Method Details

__construct() public method

Constructor
public __construct ( array $parts = [], string $type = 'AND' )
$parts array parts of the composite expression
$type string AND|OR

__toString() public method

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

add() public method

Adds an expression to composite expression.
public add ( mixed $parts ) : CompositeBuilder
$parts mixed
return CompositeBuilder

count() public method

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

getType() public method

Return type of this composite
public getType ( ) : string
return string