ReflectionClass::hasMethod

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

public function hasMethod(
  string $name,
): bool;

Checks whether a specific method is defined in a class.

Parameters

  • string $name

Returns

  • bool - TRUE if it has the method, otherwise FALSE