public function getAvg($block)
    {
        if ($this->enabled) {
            if (!array_key_exists($block, $this->avgs)) {
                throw new \Exception('Average block '.$block.' not defined');
            }

            $this->finishAvgBlock($block);

            return $this->avgs[$block];
        }
    }
public function getAvg($block)
    {
        if ($this->enabled) {
            if (!array_key_exists($block, $this->avgs)) {
                throw new \Exception('Average block '.$block.' not defined');
            }

            $this->finishAvgBlock($block);

            return $this->avgs[$block];
        }
    }
public function getAvg ( $ block ) { if ( $ this -> enabled ) { if ( ! array_key_exists ( $ block , $ this -> avgs ) ) { throw new \ Exception ( 'Average block ' . $ block . ' not defined' ) ; } $ this -> finishAvgBlock ( $ block ) ; return $ this -> avgs [ $ block ] ; } }
Get average block info

@param string $block - key to identify block

@return mixed - associative array
@throws \Exception
Get average block info