hphp/hack/manual/apis/Classes/ReflectionMethod/index.md
:::info[Note] This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information. :::
( excerpt from http://php.net/manual/en/class.reflectionmethod.php )
The ReflectionMethod class reports information about a method.
class ReflectionMethod extends ReflectionFunctionAbstract implements Reflector {...}
::export(string $class, string $name, bool $return = false): ?string
( excerpt from http://php.net/manual/en/reflectionmethod.export.php )
->__construct(...$class)
( excerpt from http://php.net/manual/en/reflectionmethod.construct.php )
->__toString(): string
( excerpt from http://php.net/manual/en/reflectionmethod.tostring.php )
->getAttributeClass<T as HH\MethodAttribute>(classname<T> $c): ?T
->getClosure($object = NULL): ?Closure
( excerpt from http://php.net/manual/en/reflectionmethod.getclosure.php
)
->getDeclaringClass()
( excerpt from
http://php.net/manual/en/reflectionmethod.getdeclaringclass.php )
->getModifiers(): int
( excerpt from
http://php.net/manual/en/reflectionmethod.getmodifiers.php )
->getPrototype(): ReflectionMethod
( excerpt from
http://php.net/manual/en/reflectionmethod.getprototype.php )
->invoke($obj, ...$args): mixed
( excerpt from http://php.net/manual/en/reflectionmethod.invoke.php )
->invokeArgs($obj, varray $args): mixed
( excerpt from http://php.net/manual/en/reflectionmethod.invokeargs.php
)
->isAbstract(): bool
( excerpt from http://php.net/manual/en/reflectionmethod.isabstract.php
)
->isConstructor(): bool
( excerpt from
http://php.net/manual/en/reflectionmethod.isconstructor.php )
->isFinal(): bool
( excerpt from http://php.net/manual/en/reflectionmethod.isfinal.php )
->isPrivate(): bool
( excerpt from http://php.net/manual/en/reflectionmethod.isprivate.php )
->isProtected(): bool
( excerpt from http://php.net/manual/en/reflectionmethod.isprotected.php
)
->isPublic(): bool
( excerpt from http://php.net/manual/en/reflectionmethod.ispublic.php )
->isStatic(): bool
( excerpt from http://php.net/manual/en/reflectionmethod.isstatic.php )
->setAccessible(bool $accessible): void
( excerpt from
http://php.net/manual/en/reflectionmethod.setaccessible.php )