Service
in package
implements
StatisticsDashboardWidgetService
Interfaces, Classes and Traits
Table of Contents
- $compatibilityMapper : CompatibilityMapper
- $factory : SummarizableTimespanFactory
- $preferredCategoryStorage : PreferredCategoryStorage
- $preferredPeriodStorage : PreferredPeriodStorage
- $service : StatisticsDataService
- __construct() : mixed
- Constructor.
- getPreferredCategory() : PreferredCategory|null
- Get preferred category for current user.
- getPreferredPeriod() : PreferredPeriod|null
- Get preferred period for current user.
- getStatistics() : Result
- Get statistics for the Gambio Admin widget.
- updatePreferredCategory() : void
- Update preferred category for current user.
- updatePreferredPeriod() : void
- Update preferred period for current user.
Properties
$compatibilityMapper
private
CompatibilityMapper
$compatibilityMapper
$factory
private
SummarizableTimespanFactory
$factory
$preferredCategoryStorage
private
PreferredCategoryStorage
$preferredCategoryStorage
$preferredPeriodStorage
private
PreferredPeriodStorage
$preferredPeriodStorage
$service
private
StatisticsDataService
$service
Methods
__construct()
Constructor.
public
__construct(SummarizableTimespanFactory $factory, PreferredPeriodStorage $periodStorage, PreferredCategoryStorage $categoryStorage, StatisticsDataService $service, CompatibilityMapper $compatibilityMapper) : mixed
Parameters
- $factory : SummarizableTimespanFactory
- $periodStorage : PreferredPeriodStorage
- $categoryStorage : PreferredCategoryStorage
- $service : StatisticsDataService
- $compatibilityMapper : CompatibilityMapper
Return values
mixed —getPreferredCategory()
Get preferred category for current user.
public
getPreferredCategory() : PreferredCategory|null
Tags
Return values
PreferredCategory|null —getPreferredPeriod()
Get preferred period for current user.
public
getPreferredPeriod() : PreferredPeriod|null
Tags
Return values
PreferredPeriod|null —getStatistics()
Get statistics for the Gambio Admin widget.
public
getStatistics() : Result
Tags
Return values
Result —updatePreferredCategory()
Update preferred category for current user.
public
updatePreferredCategory(string $category) : void
Parameters
- $category : string
Tags
Return values
void —updatePreferredPeriod()
Update preferred period for current user.
public
updatePreferredPeriod(string $period) : void
Parameters
- $period : string