リフレクション
PHP Manual

ReflectionProperty クラス

(PHP 5)

導入

ReflectionProperty クラスは クラスのプロパティについての情報を報告します。

クラス概要

ReflectionProperty implements Reflector {
/* 定数 */
const integer IS_STATIC = 1 ;
const integer IS_PUBLIC = 256 ;
const integer IS_PROTECTED = 512 ;
const integer IS_PRIVATE = 1024 ;
/* プロパティ */
public $name ;
public $class ;
/* メソッド */
final private void __clone ( void )
__construct ( mixed $class , string $name )
public static string export ( mixed $class , string $name [, bool $return ] )
public ReflectionClass getDeclaringClass ( void )
public string getDocComment ( void )
public int getModifiers ( void )
public string getName ( void )
public mixed getValue ( object $object )
public bool isDefault ( void )
public bool isPrivate ( void )
public bool isProtected ( void )
public bool isPublic ( void )
public bool isStatic ( void )
public void setAccessible ( bool $accessible )
public void setValue ( object $object , mixed $value )
public string __toString ( void )
}

プロパティ

name

プロパティ名。読み込み専用で、書き込もうとすると ReflectionException をスローします。

class

プロパティが定義されているクラス名。読み込み専用で、書き込もうとすると ReflectionException をスローします。

定義済み定数

ReflectionProperty の修飾子

ReflectionProperty::IS_STATIC

static プロパティを示します。

ReflectionProperty::IS_PUBLIC

public プロパティを示します。

ReflectionProperty::IS_PROTECTED

protected プロパティを示します。

ReflectionProperty::IS_PRIVATE

private プロパティを示します。

目次


リフレクション
PHP Manual