REFLECTIONPROPERTY(3) 1 REFLECTIONPROPERTY(3)
The ReflectionProperty class
INTRODUCTION
The ReflectionProperty class reports information about classes properties.
CLASS SYNOPSIS
ReflectionProperty
ReflectionPropertyReflector
Constants
o const integer$ReflectionProperty::IS_STATIC1
o const integer$ReflectionProperty::IS_PUBLIC256
o const integer$ReflectionProperty::IS_PROTECTED512
o const integer$ReflectionProperty::IS_PRIVATE1024
Properties
o public$name
o public$class
Methods
o finalprivate void ReflectionProperty::__clone (void )
o public ReflectionProperty::__construct (mixed $class, string $name)
o publicstatic string ReflectionProperty::export (mixed $class, string $name, [bool $return])
o public ReflectionClass ReflectionProperty::getDeclaringClass (void )
o public string ReflectionProperty::getDocComment (void )
o public int ReflectionProperty::getModifiers (void )
o public string ReflectionProperty::getName (void )
o public mixed ReflectionProperty::getValue ([object $object])
o public bool ReflectionProperty::isDefault (void )
o public bool ReflectionProperty::isPrivate (void )
o public bool ReflectionProperty::isProtected (void )
o public bool ReflectionProperty::isPublic (void )
o public bool ReflectionProperty::isStatic (void )
o public void ReflectionProperty::setAccessible (bool $accessible)
o public void ReflectionProperty::setValue (object $object, mixed $value)
o public string ReflectionProperty::__toString (void )
PROPERTIES
o $name
- Name of the property. Read-only, throws ReflectionException in attempt to write.
o $class
- Name of the class where the property is defined. Read-only, throws ReflectionException in attempt to write.
PREDEFINED CONSTANTS
REFLECTIONPROPERTY MODIFIERS
o ReflectionProperty::IS_STATIC - Indicates static properties.
o ReflectionProperty::IS_PUBLIC - Indicates public properties.
o ReflectionProperty::IS_PROTECTED - Indicates protected properties.
o ReflectionProperty::IS_PRIVATE - Indicates private properties.
PHP Documentation Group REFLECTIONPROPERTY(3)