Zend\Code\Reflection\PropertyReflection
Synopsis
class PropertyReflection
extends ReflectionProperty
implements
ReflectionInterface
{
- // Inherited constants from ReflectionProperty
- const IS_STATIC = 1;
- const IS_PUBLIC = 256;
- const IS_PROTECTED = 512;
- const IS_PRIVATE = 1024;
- // members
- protected AnnotationScanner $annotations;
- // methods
- public ClassReflection getDeclaringClass()
- public string|false getDocComment()
- public false|DocBlockReflection getDocBlock()
- public AnnotationScanner getAnnotations()
- public void toString()
- protected FileScanner createFileScanner()
- // Inherited methods from ReflectionProperty
- 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
Tasks
Line | Task |
---|---|
20+ | implement line numbers |
Constants
Name | Value |
---|---|
IS_STATIC | 1 |
IS_PUBLIC | 256 |
IS_PROTECTED | 512 |
IS_PRIVATE | 1024 |
Members
protected
- $annotations — Zend\Code\Scanner\AnnotationScanner
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
protected
- createFileScanner() — Creates a new FileScanner instance.
public
- getAnnotations()
- getDeclaringClass() — Get declaring class reflection object
- getDocBlock()
- getDocComment() — Get DocBlock comment
- toString()
Inherited from ReflectionProperty
public
- __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