ReflectionClass::getMethod

( excerpt from http://php.net/manual/en/reflectionclass.getmethod.php )

public function getMethod(
  string $name,
): ReflectionMethod;

Gets a ReflectionMethod for a class method.

Parameters

  • string $name

Returns

  • mixed - A ReflectionMethod.