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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant