Méthode | Description | |
---|---|---|
__construct ( |
||
createStatisticSnapshot ( ) | ||
getAveragePrice ( ) : float | Returns the average price for all parts. Only parts with a price are calculated. | |
getPartCategoryCount ( ) : integer | Returns the part category count. | |
getPartCount ( boolean | false $withoutPrice = false ) : mixed | Returns the part count. | |
getSampledStatistics ( DateTime $startDate, DateTime $endDate, integer $sampleSize = 25 ) : array | Gets the sampled statistics. | |
getStatisticRange ( ) | Returns the range of all recorded statistic snapshots. | |
getTotalPrice ( ) : float | Returns the total price for all parts. Only parts with a price are calculated. | |
getUnitCounts ( ) : array | Returns the part counts per part unit. |
public __construct ( |
||
$entityManager |
public getAveragePrice ( ) : float | ||
Résultat | float | The average price |
public getPartCategoryCount ( ) : integer | ||
Résultat | integer |
public getPartCount ( boolean | false $withoutPrice = false ) : mixed | ||
$withoutPrice | boolean | false | Set to true to retrieve all parts where the average price is null |
Résultat | mixed |
public getSampledStatistics ( DateTime $startDate, DateTime $endDate, integer $sampleSize = 25 ) : array | ||
$startDate | DateTime | |
$endDate | DateTime | |
$sampleSize | integer | |
Résultat | array |
public getStatisticRange ( ) |
public getTotalPrice ( ) : float | ||
Résultat | float | The total price |
public getUnitCounts ( ) : array | ||
Résultat | array | An array of arrays with the keys "name" and "stockLevel" |