ReflectionClass::getMethod
Gets a ReflectionMethod for a class method.
&reftitle.description;
public ReflectionMethodReflectionClass::getMethod
stringname
Gets a ReflectionMethod for a class method.
&reftitle.parameters;
name
The method name to reflect.
&reftitle.returnvalues;
A ReflectionMethod.
&reftitle.errors;
A ReflectionException if the method does not exist.
&reftitle.examples;
Basic usage of ReflectionClass::getMethod
getMethod('getMethod');
var_dump($method);
?>
]]>
&example.outputs;
string(9) "getMethod"
["class"]=>
string(15) "ReflectionClass"
}
]]>
&reftitle.seealso;
ReflectionClass::getMethods