ReflectionClassConstant::__construct

(PHP 7 >= 7.1.0)

ReflectionClassConstant::__constructReflectionClassConstant を構築する

説明

public ReflectionClassConstant::__construct ( object|string $class , string $constant )

新しい ReflectionClassConstant を構築します。

パラメータ

class

リフレクションするクラス名を含んだ文字列か、object

constant

クラス定数の名前

返り値

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

エラー / 例外

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

参考