public function method($name)
    {
        if ( ! $this->object->hasMethod($name))
        {
            throw new UnexpectedValueException(
                "Method {$name} does not exist"
            );
        }

        return $this->extractComment($this->object->getMethod($name));
    }
public function method($name)
    {
        if ( ! $this->object->hasMethod($name))
        {
            throw new UnexpectedValueException(
                "Method {$name} does not exist"
            );
        }

        return $this->extractComment($this->object->getMethod($name));
    }
public function method ( $ name ) { if ( ! $ this -> object -> hasMethod ( $ name ) ) { throw new UnexpectedValueException ( "Method {$name} does not exist" ) ; } return $ this -> extractComment ( $ this -> object -> getMethod ( $ name ) ) ; }
Get the method comment.

@throws UnexpectedValueException
@param string $name
@return Comment
Get the method comment .