ReflectionClass::hasMethod

ReflectionClass::hasMethod

(PHP 5 >= 5.1.0, PHP 7)

ReflectionClass::hasMethodChecks if method is defined

Description

public bool ReflectionClass::hasMethod ( string $name )

Checks whether a specific method is defined in a class.

Parameters

name

Name of the method being checked for.