protected function getInfoSignature(MethodInfoInterface $method) { return sprintf('%s->%s()', $method->getDeclaringType()->getName(), $method->getName()); }
public function buildMethodSignature(MethodInfoInterface $method, $skipAbstract = false) { $code = ''; if ($method->isProtected()) { $code .= 'protected '; } elseif ($method->isPrivate()) { $code .= 'private '; } else { $code .= 'public '; } if ($method->isStatic()) { $code .= 'static '; } if ($method->isAbstract() && !$skipAbstract) { $code .= 'abstract '; } elseif ($method->isFinal()) { $code .= 'final '; } $code .= 'function '; if ($method->isReturnReference()) { $code .= '& '; } $code .= $method->getName() . '('; foreach ($method->getParameters() as $i => $param) { if ($i != 0) { $code .= ', '; } $code .= $this->buildParameterSignature($param); } return $code . ')'; }