Php/docs/class.reflectionclassconstant

提供:Dev Guides
< Php
移動先:案内検索

(PHP 7 >= 7.1.0)

はじめに

ReflectionClassConstant クラスは、クラス定数に関する情報を報告します。


クラス概要


ReflectionClassConstant implements Reflector {

/* プロパティ */

public $name

public $class

/* メソッド */

public __construct ( mixed $class , string $name )

public static export ( mixed $class , string $name [, bool $return ] ) : string

public getDocComment ( ) : string

public getModifiers ( ) : int

public getName ( ) : string

public getValue ( ) : mixed

public isPrivate ( ) : bool

public isProtected ( ) : bool

public isPublic ( ) : bool

public __toString ( ) : string

}

プロパティ

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


目次