PartKeepr\StatisticBundle\Services\StatisticService::getStatisticRange PHP Method

getStatisticRange() public method

Returns the range of all recorded statistic snapshots.
public getStatisticRange ( )
    public function getStatisticRange()
    {
        $dql = 'SELECT MIN(sts.dateTime) AS startDate, MAX(sts.dateTime) AS endDate FROM PartKeepr\\StatisticBundle\\Entity\\StatisticSnapshot sts';
        $query = $this->entityManager->createQuery($dql);
        return $query->getSingleResult();
    }