CakeFest 2024: The Official CakePHP Conference

ReflectionClassConstant::__construct

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClassConstant::__constructReflectionClassConstant を構築する

説明

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

新しい ReflectionClassConstant を構築します。

パラメータ

class

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

constant

クラス定数の名前

エラー / 例外

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

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top