protected function processStatistics($query = null)
    {
        $this->skips = 0;
        $this->success = 0;
        $this->failures = 0;
        $this->noops = 0;
        $reports = $this->getReportService()->getAllForToday($query);
        foreach ($reports as $report) {
            /** @var Model\Report $report */
            if ($report->getStatus() == Model\ReportInterface::SKIPPED) {
                $this->skips++;
            } elseif ($report->getStatus() == Model\ReportInterface::SUCCESS) {
                $this->success++;
            } elseif ($report->getStatus() == Model\ReportInterface::FAILURE) {
                $this->failures++;
            } elseif ($report->getStatus() == Model\ReportInterface::NOOP) {
                $this->noops++;
            }
        }
    }
protected function processStatistics($query = null)
    {
        $this->skips = 0;
        $this->success = 0;
        $this->failures = 0;
        $this->noops = 0;
        $reports = $this->getReportService()->getAllForToday($query);
        foreach ($reports as $report) {
            /** @var Model\Report $report */
            if ($report->getStatus() == Model\ReportInterface::SKIPPED) {
                $this->skips++;
            } elseif ($report->getStatus() == Model\ReportInterface::SUCCESS) {
                $this->success++;
            } elseif ($report->getStatus() == Model\ReportInterface::FAILURE) {
                $this->failures++;
            } elseif ($report->getStatus() == Model\ReportInterface::NOOP) {
                $this->noops++;
            }
        }
    }
protected function processStatistics ( $ query = null ) { $ this -> skips = 0 ; $ this -> success = 0 ; $ this -> failures = 0 ; $ this -> noops = 0 ; $ reports = $ this -> getReportService ( ) -> getAllForToday ( $ query ) ; foreach ( $ reports as $ report ) { /** @var Model\Report $report */ if ( $ report -> getStatus ( ) == Model \ ReportInterface :: SKIPPED ) { $ this -> skips ++ ; } elseif ( $ report -> getStatus ( ) == Model \ ReportInterface :: SUCCESS ) { $ this -> success ++ ; } elseif ( $ report -> getStatus ( ) == Model \ ReportInterface :: FAILURE ) { $ this -> failures ++ ; } elseif ( $ report -> getStatus ( ) == Model \ ReportInterface :: NOOP ) { $ this -> noops ++ ; } } }
Browse all reports and process all the statistics

@param \KmbPuppetDb\Query\Query|array $query
Browse all reports and process all the statistics