ReflectionClass::getMethod
Récupère un ReflectionMethod pour une méthode de classe
&reftitle.description;
public ReflectionMethodReflectionClass::getMethod
stringname
Récupère un ReflectionMethod pour une méthode de classe.
&reftitle.parameters;
name
Le nom de la méthode à refléter.
&reftitle.returnvalues;
Un objet ReflectionMethod.
&reftitle.errors;
Une exception ReflectionException si la méthode n'existe pas.
&reftitle.examples;
Utilisation simple de ReflectionClass::getMethod
getMethod('getMethod');
var_dump($method);
?>
]]>
&example.outputs;
string(9) "getMethod"
["class"]=>
string(15) "ReflectionClass"
}
]]>
&reftitle.seealso;
ReflectionClass::getMethods