ReflectionClass::getMethod
クラスメソッドの ReflectionMethod を取得する
&reftitle.description;
public ReflectionMethodReflectionClass::getMethod
stringname
クラスメソッドに関する ReflectionMethod を取得します。
&reftitle.parameters;
name
調べたいメソッドの名前。
&reftitle.returnvalues;
ReflectionMethod を返します。
&reftitle.errors;
メソッドが存在しない場合に ReflectionException が発生します。
&reftitle.examples;
ReflectionClass::getMethod の基本的な使用例
getMethod('getMethod');
var_dump($method);
?>
]]>
&example.outputs;
string(9) "getMethod"
["class"]=>
string(15) "ReflectionClass"
}
]]>
&reftitle.seealso;
ReflectionClass::getMethods