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) . ")";
    }