public function getDocComment($type = 'class', $name = '')
    {
        $this->parse();

        return $name ? $this->docComment[$type][$name] : $this->docComment[$type];
    }
public function getDocComment($type = 'class', $name = '')
    {
        $this->parse();

        return $name ? $this->docComment[$type][$name] : $this->docComment[$type];
    }
public function getDocComment ( $ type = 'class' , $ name = '' ) { $ this -> parse ( ) ; return $ name ? $ this -> docComment [ $ type ] [ $ name ] : $ this -> docComment [ $ type ] ; }
Gets the doc comment.

@param string $type The type: 'class', 'property' or 'method'.
@param string $name The name of the property or method, not needed for 'class'.

@return string The doc comment, empty string if none.
Gets the doc comment .