public function getPrototype(ReflectionMethod $method)
    {
        $modifiers =
            implode(' ', Reflection::getModifierNames($method->getModifiers()));
        if ($this->hideAbstract) {
            $modifiers = str_replace('abstract ', '', $modifiers);
        }
        $parameters = array();
        foreach ($method->getParameters() as $p) {
            $param = $this->getTypeHint($p);
            $param .= $this->getName($p);
            $param .= $this->getDefaultValue($p);
            $parameters[] = $param;
        }

        return $modifiers . ' function ' . $method->getName() . "(" .
        implode(', ', $parameters) . ")";
    }
public function getPrototype(ReflectionMethod $method)
    {
        $modifiers =
            implode(' ', Reflection::getModifierNames($method->getModifiers()));
        if ($this->hideAbstract) {
            $modifiers = str_replace('abstract ', '', $modifiers);
        }
        $parameters = array();
        foreach ($method->getParameters() as $p) {
            $param = $this->getTypeHint($p);
            $param .= $this->getName($p);
            $param .= $this->getDefaultValue($p);
            $parameters[] = $param;
        }

        return $modifiers . ' function ' . $method->getName() . "(" .
        implode(', ', $parameters) . ")";
    }
public function getPrototype ( ReflectionMethod $ method ) { $ modifiers = implode ( ' ' , Reflection :: getModifierNames ( $ method -> getModifiers ( ) ) ) ; if ( $ this -> hideAbstract ) { $ modifiers = str_replace ( 'abstract ' , '' , $ modifiers ) ; } $ parameters = array ( ) ; foreach ( $ method -> getParameters ( ) as $ p ) { $ param = $ this -> getTypeHint ( $ p ) ; $ param .= $ this -> getName ( $ p ) ; $ param .= $ this -> getDefaultValue ( $ p ) ; $ parameters [ ] = $ param ; } return $ modifiers . ' function ' . $ method -> getName ( ) . "(" . implode ( ', ' , $ parameters ) . ")" ; }
Get the prototype for the method.

@param  ReflectionMethod $method
@return string
Get the prototype for the method .