PHP Класс Bluz\Db\Query\CompositeBuilder

Наследование: implements Countable
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

__toString() публичный Метод

Retrieve the string representation of this composite expression.
public __toString ( ) : string
Результат string

add() публичный Метод

Adds an expression to composite expression.
public add ( mixed $parts ) : CompositeBuilder
$parts mixed
Результат CompositeBuilder

count() публичный Метод

Retrieves the amount of expressions on composite expression.
public count ( ) : integer
Результат integer

getType() публичный Метод

Return type of this composite
public getType ( ) : string
Результат string