PartKeepr\StatisticBundle\Controller\StatisticController::getSampledStatisticAction PHP 메소드

getSampledStatisticAction() 공개 메소드

Returns the sampled statistics for a given period.
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);
    }