SimpleReflection::getFullSignature PHP Method

getFullSignature() protected method

For a signature specified in an interface, full details must be replicated to be a valid implementation.
protected getFullSignature ( string $name ) : string
$name string Method name.
return string Method signature up to last bracket.
    protected function getFullSignature($name)
    {
        $interface = new ReflectionClass($this->interface);
        $method = $interface->getMethod($name);
        $reference = $method->returnsReference() ? '&' : '';
        $static = $method->isStatic() ? 'static ' : '';
        return "{$static}function {$reference}{$name}(" . implode(', ', $this->getParameterSignatures($method)) . ')';
    }