Service
in package
implements
StatisticsDataService
Interfaces, Classes and Traits
Table of Contents
- $factory : Factory
- $repository : Repository
- __construct() : mixed
- Constructor.
- getConversionRatesByTimespan() : Serial
- Get conversion rates as serial data for provided time span.
- getOrdersByTimespan() : Serial
- Get orders as serial data for provided time span.
- getSalesByTimespan() : Serial
- Get sales as serial data for provided time span.
- getVisitorsByTimespan() : Serial
- Get visitors as serial data for provided time span.
Properties
$factory
private
Factory
$factory
$repository
private
Repository
$repository
Methods
__construct()
Constructor.
public
__construct(Repository $repository, Factory $factory) : mixed
Parameters
- $repository : Repository
- $factory : Factory
Return values
mixed —getConversionRatesByTimespan()
Get conversion rates as serial data for provided time span.
public
getConversionRatesByTimespan(DateTimeInterface $start, DateTimeInterface $end) : Serial
Parameters
- $start : DateTimeInterface
- $end : DateTimeInterface
Tags
Return values
Serial —getOrdersByTimespan()
Get orders as serial data for provided time span.
public
getOrdersByTimespan(DateTimeInterface $start, DateTimeInterface $end) : Serial
Parameters
- $start : DateTimeInterface
- $end : DateTimeInterface
Tags
Return values
Serial —getSalesByTimespan()
Get sales as serial data for provided time span.
public
getSalesByTimespan(DateTimeInterface $start, DateTimeInterface $end) : Serial
Parameters
- $start : DateTimeInterface
- $end : DateTimeInterface
Tags
Return values
Serial —getVisitorsByTimespan()
Get visitors as serial data for provided time span.
public
getVisitorsByTimespan(DateTimeInterface $start, DateTimeInterface $end) : Serial
Parameters
- $start : DateTimeInterface
- $end : DateTimeInterface