PHP Класс Storm\Api\Base\Fluent\CriterionBuilder

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$EntityMap
$EntityType

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

Метод Описание
BuildCriterion ( ) : Criterion Returns the built criterion
GroupBy ( callable $Expression ) : CriterionBuilder Specifies the function to use as grouping for the criterion.
Limit ( integer | null $Amount ) : CriterionBuilder Specifies the amount of entities to retrieve. Pass null to remove limit.
OrderBy ( callable $Expression ) : CriterionBuilder Specifies the closure to use as an ascending ordering for the criterion.
OrderByDescending ( callable $Expression ) : CriterionBuilder Specifies the function to use as an descending ordering for the criterion.
Skip ( integer $Amount ) : CriterionBuilder Specifies the amount of entities to skip.
Where ( callable $Predicate ) : CriterionBuilder Specifies a closure to parse as predicate for this criterion.
__construct ( Storm\Core\Object\IEntityMap $EntityMap, FunctionToASTConverter $FunctionToASTConverter )

Защищенные методы

Метод Описание
FunctionToExpandedAST ( callable $Function ) : Storm\Drivers\Fluent\Object\Functional\IAST Parses a given function into an IAST structure using the provider converter

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

BuildCriterion() закрытый публичный метод

Returns the built criterion
final public BuildCriterion ( ) : Criterion
Результат Storm\Drivers\Fluent\Object\Criterion The specified criterion

FunctionToExpandedAST() закрытый защищенный метод

Parses a given function into an IAST structure using the provider converter
final protected FunctionToExpandedAST ( callable $Function ) : Storm\Drivers\Fluent\Object\Functional\IAST
$Function callable The function to parse
Результат Storm\Drivers\Fluent\Object\Functional\IAST The return

GroupBy() закрытый публичный метод

Example expression closure: function (Car $Car) { return $Car->GetBrand(); }
final public GroupBy ( callable $Expression ) : CriterionBuilder
$Expression callable The expression function
Результат CriterionBuilder

Limit() закрытый публичный метод

Specifies the amount of entities to retrieve. Pass null to remove limit.
final public Limit ( integer | null $Amount ) : CriterionBuilder
$Amount integer | null The amount of entities to retrieve
Результат CriterionBuilder

OrderBy() закрытый публичный метод

Example expression closure: function (Car $Car) { return $Car->GetManufactureDate(); }
final public OrderBy ( callable $Expression ) : CriterionBuilder
$Expression callable The expression closure
Результат CriterionBuilder

OrderByDescending() закрытый публичный метод

Example expression closure: function (Car $Car) { return $Car->GetManufactureDate(); }
final public OrderByDescending ( callable $Expression ) : CriterionBuilder
$Expression callable The expression closure
Результат CriterionBuilder

Skip() закрытый публичный метод

Specifies the amount of entities to skip.
final public Skip ( integer $Amount ) : CriterionBuilder
$Amount integer The amount of entities to skip
Результат CriterionBuilder

Where() закрытый публичный метод

Example predicate closure: function (Car $Car) use ($Name) { return $Car->IsAvailable() && $Car->GetName() === $Name; }
final public Where ( callable $Predicate ) : CriterionBuilder
$Predicate callable The predicate function
Результат CriterionBuilder

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

public __construct ( Storm\Core\Object\IEntityMap $EntityMap, FunctionToASTConverter $FunctionToASTConverter )
$EntityMap Storm\Core\Object\IEntityMap
$FunctionToASTConverter Storm\Api\Base\FunctionToASTConverter

Описание свойств

$EntityMap защищенное свойство

protected $EntityMap

$EntityType защищенное свойство

protected $EntityType