ReflectionClass::getConstructor
クラスのコンストラクタを取得する
&reftitle.description;
public ReflectionMethodnullReflectionClass::getConstructor
クラスのコンストラクタを取得します。
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
クラスのコンストラクタを表す ReflectionMethod オブジェクトを返します。
クラスのコンストラクタがない場合は &null; を返します。
&reftitle.examples;
ReflectionClass::getConstructor の基本的な使用例
getConstructor();
var_dump($constructor);
?>
]]>
&example.outputs;
string(11) "__construct"
["class"]=>
string(15) "ReflectionClass"
}
]]>
&reftitle.seealso;
ReflectionClass::getName