ReflectionClass::hasMethod

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

Description

public function hasMethod(
  string $name,
): bool

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

Checks whether a specific method is defined in a class.

Parameters

  • string $name

Return Values

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