\ReflectionProperty
Synopsis
class ReflectionProperty
implements
Reflector
{
- // constants
- const IS_STATIC = 1;
- const IS_PUBLIC = 256;
- const IS_PROTECTED = 512;
- const IS_PRIVATE = 1024;
- // methods
- final void __clone()
- public void __construct()
- public string export()
- public ReflectionClass getDeclaringClass()
- public string getDocComment()
- public int getModifiers()
- public string getName()
- public mixed getValue()
- public bool isDefault()
- public bool isPrivate()
- public bool isProtected()
- public bool isPublic()
- public bool isStatic()
- public void setAccessible()
- public void setValue()
- public string __toString()
Hierarchy
Constants
Name | Value |
---|---|
IS_STATIC | 1 |
IS_PUBLIC | 256 |
IS_PROTECTED | 512 |
IS_PRIVATE | 1024 |
Members
public
-
$class
Name of the class where the property is defined. Read-only, throws ReflectionException in attempt to write. -
$name
Name of the property. Read-only, throws ReflectionException in attempt to write.
Methods
public
- __construct() — Construct a ReflectionProperty object
- __toString() — To string
- export() — Export
- getDeclaringClass() — Gets declaring class
- getDocComment() — Gets doc comment
- getModifiers() — Gets modifiers
- getName() — Gets property name
- getValue() — Gets value
- isDefault() — Checks if default value
- isPrivate() — Checks if property is private
- isProtected() — Checks if property is protected
- isPublic() — Checks if property is public
- isStatic() — Checks if property is static
- setAccessible() — Set property accessibility
- setValue() — Set property value