Copied!

AggregationVisitor

AggregationVisitor.php : 13

Methods

publicsupports()

AggregationVisitor.php : 18

Returns true if visitor supports given aggregation.

public supports(Aggregation $aggregation, LanguageFilter $languageFilter) : bool

Parameters

Name Type Default value Description
$aggregation Aggregation - -
$languageFilter LanguageFilter - -

Return values

bool

publicvisit()

AggregationVisitor.php : 23

Builds aggregation query.

public visit(AggregationVisitor $dispatcher, Aggregation $aggregation, LanguageFilter $languageFilter) : array<string|int, mixed>

Parameters

Name Type Default value Description
$dispatcher AggregationVisitor - -
$aggregation Aggregation - -
$languageFilter LanguageFilter - -

Return values

array<string|int, mixed>