ReflectionClass::hasMethod

( excerpt from http://php

Description

public function hasMethod(
  string $name,
): bool

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