public function addStatistics($statistics)
    {
        if (!is_array($statistics)) {
            $statistics = array($statistics);
        }

        foreach ($statistics as $statistic) {
            $reflect = new \ReflectionClass($statistic);
            $this->statistics[strtolower($reflect->getShortName())] = $statistic;
        }
    }
public function addStatistics($statistics)
    {
        if (!is_array($statistics)) {
            $statistics = array($statistics);
        }

        foreach ($statistics as $statistic) {
            $reflect = new \ReflectionClass($statistic);
            $this->statistics[strtolower($reflect->getShortName())] = $statistic;
        }
    }
public function addStatistics ( $ statistics ) { if ( ! is_array ( $ statistics ) ) { $ statistics = array ( $ statistics ) ; } foreach ( $ statistics as $ statistic ) { $ reflect = new \ ReflectionClass ( $ statistic ) ; $ this -> statistics [ strtolower ( $ reflect -> getShortName ( ) ) ] = $ statistic ; } }
Add statistic aggregator.

@param StatisticsInterface|array $statistics
Add statistic aggregator .