Php/docs/reflectionclassconstant.construct

提供:Dev Guides
< Php
移動先:案内検索

ReflectionClassConstant::__construct

(PHP 7 >= 7.1.0)

ReflectionClassConstant::__constructReflectionClassConstant を構築する


説明

public ReflectionClassConstant::__construct ( mixed $class , string $name )

新しい ReflectionClassConstant を構築します。


パラメータ

class
リフレクションするクラス名を含んだ文字列か、object
name
クラス定数の名前


返り値

構築された ReflectionClassConstant のインスタンスを返します。


エラー / 例外

与えられたクラス定数が存在しない場合は、Exception をスローします。


参考