Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractStatsController::getMonthlyStats PHP Method

getMonthlyStats() protected method

return number of entity instances from the begining of the month
protected getMonthlyStats ( string $entity ) : integer
$entity string Entity namespace parameter
return integer Total of monthly instances
    protected function getMonthlyStats($entity)
    {
        return $this->getTotalsByInterval($entity, new DateTime('midnight first day of this month'), new DateTime());
    }