ReflectionConstant クラス

はじめに

ReflectionConstant クラスは、グローバル定数に関する情報を報告します。

クラス概要

final ReflectionConstant
implements Reflector
/* プロパティ */
public string $name;
/* メソッド */
public __construct(string $name)
public ReflectionExtensionnull getExtension()
public stringfalse getExtensionName()
public stringfalse getFileName()
public string getName()
public string getNamespaceName()
public string getShortName()
public mixed getValue()
public bool isDeprecated()
public string __toString()

プロパティ

name
定数の名前。読み取り専用です。 書き込もうとすると ReflectionException がスローされます。

参考

  • ReflectionClassConstant
目次