Copied!

DateMetadataRangeAggregation

DateMetadataRangeAggregation.php : 14

Constants

publicCREATED

DateMetadataRangeAggregation.php : 17
public mixed CREATED = 'created'

publicMODIFIED

DateMetadataRangeAggregation.php : 16
public mixed MODIFIED = 'modified'

publicPUBLISHED

DateMetadataRangeAggregation.php : 18
public mixed PUBLISHED = 'published'

Properties

protected $name

AbstractRangeAggregation.php : 20

The name of the aggregation.

protected string $name

protected $ranges

AbstractRangeAggregation.php : 23
protected array<string|int, Range$ranges

Methods

public__construct()

DateMetadataRangeAggregation.php : 23
public __construct(string $name, string $type[, array<string|int, mixed> $ranges = [] ])

Parameters

Name Type Default value Description
$name string - -
$type string - -
$ranges array<string|int, mixed> [] -

publicfromGenerator()

DateMetadataRangeAggregation.php : 34
public static fromGenerator(string $name, string $type, RangesGeneratorInterface $generator) : self

Parameters

Name Type Default value Description
$name string - -
$type string - -
$generator RangesGeneratorInterface - -

Return values

self

publicgetName()

AbstractRangeAggregation.php : 36
public getName() : string

Return values

string

publicgetRanges()

AbstractRangeAggregation.php : 31
public getRanges() : array<string|int, mixed>

Return values

array<string|int, mixed>

publicgetType()

DateMetadataRangeAggregation.php : 29
public getType() : string

Return values

string