ReflectionClass::getMethod
Obtém um ReflectionMethod para um método de classe
&reftitle.description;
public ReflectionMethodReflectionClass::getMethod
stringname
Obtém um ReflectionMethod para um método de classe.
&reftitle.parameters;
name
O nome do método a ser refletido.
&reftitle.returnvalues;
Um ReflectionMethod.
&reftitle.errors;
Uma ReflectionException se o método não existir.
&reftitle.examples;
Uso básico de ReflectionClass::getMethod
getMethod('getMethod');
var_dump($method);
?>
]]>
&example.outputs;
string(9) "getMethod"
["class"]=>
string(15) "ReflectionClass"
}
]]>
&reftitle.seealso;
ReflectionClass::getMethods