src/Reporter/Coverage/Metrics.php
public function get($name = null)
    {
        $parts = $this->_parseName($name);

        $child = $this;
        foreach ($parts as $part) {
            list($name) = $part;
            if (!isset($child->_children[$name])) {
                return;
            }
            $child = $child->_children[$name];
        }
        return $child;
    }
public function get($name = null)
    {
        $parts = $this->_parseName($name);

        $child = $this;
        foreach ($parts as $part) {
            list($name) = $part;
            if (!isset($child->_children[$name])) {
                return;
            }
            $child = $child->_children[$name];
        }
        return $child;
    }
public function get ( $ name = null ) { $ parts = $ this -> _parseName ( $ name ) ; $ child = $ this ; foreach ( $ parts as $ part ) { list ( $ name ) = $ part ; if ( ! isset ( $ child -> _children [ $ name ] ) ) { return ; } $ child = $ child -> _children [ $ name ] ; } return $ child ; }
Gets the metrics from a name.

@param  string $name The name reference of the metrics.
@return object       The metrics instance.
Gets the metrics from a name .