public getSampledStatisticAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : array | ||
$paramFetcher | FOS\RestBundle\Request\ParamFetcher | |
Результат | array |
public function getSampledStatisticAction(ParamFetcher $paramFetcher)
{
$start = new \DateTime($paramFetcher->get('start'));
$end = new \DateTime($paramFetcher->get('end'));
return $this->get('partkeepr.statistic.service')->getSampledStatistics($start, $end);
}