« ReflectionConstant
ReflectionConstant::getAttributes »

ReflectionConstant::__construct

(PHP 8 >= 8.4.0)

ReflectionConstant::__construct — ReflectionConstant を構築する

説明

public function ReflectionConstant::__construct(string $name)

新しい ReflectionConstant を構築します。

パラメータ

name

定数の名前。

エラー / 例外

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

参考

関連キーワード:
ReflectionConstant   構築   construct   定数   getAttributes   ReflectionException   参考   Constructors
関連する関数・ページ:
reflectionconstant.getname   reflectionconstant.getshortname   reflectionconstant.getfilename   reflectionconstant.tostring   class.reflectionconstant   reflectionconstant.getvalue