PHP 클래스 Storm\Api\Base\Fluent\CriterionBuilder

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/penumbra 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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