Copied!

PriceStatsAggregationResult

PriceStatsAggregationResult.php : 14
Final

The base class for all value objects and structs.

Supports read-only properties by marking them as protected. In this case they will only be writable using constructor, and need to be documented using @property-read <type> <$var> annotation in class doc in addition to inline property doc. Writable properties must be public and must be documented inline.

Properties

public $sum

PriceStatsAggregationResult.php : 16
public Money|null $sum

Methods

public__construct()

PriceStatsAggregationResult.php : 26

Construct object optionally with a set of properties.

public __construct(string $name, int|null $count, Money|null $min, Money|null $max, Money|null $avg, Money|null $sum)

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$name string - -
$count int|null - -
$min Money|null - -
$max Money|null - -
$avg Money|null - -
$sum Money|null - -

publicgetAvg()

PriceStatsAggregationResult.php : 52
public getAvg() : Money|null

Return values

Money|null

publicgetCount()

PriceStatsAggregationResult.php : 37
public getCount() : int|null

Return values

int|null

publicgetMax()

PriceStatsAggregationResult.php : 47
public getMax() : Money|null

Return values

Money|null

publicgetMin()

PriceStatsAggregationResult.php : 42
public getMin() : Money|null

Return values

Money|null

publicgetName()

AggregationResult.php : 29
public getName() : string

Return values

string

publicgetSum()

PriceStatsAggregationResult.php : 57
public getSum() : Money|null

Return values

Money|null

protectedgetProperties()

ValueObject.php : 54

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Tags
Serializerignore

()