PartKeepr\StatisticBundle\Controller\StatisticController::getSampledStatisticAction PHP Méthode

getSampledStatisticAction() public méthode

Returns the sampled statistics for a given period.
public getSampledStatisticAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : array
$paramFetcher FOS\RestBundle\Request\ParamFetcher
Résultat 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);
    }