Method |
Description |
|
__clone ( ) |
|
|
__toString ( ) : string |
Return string representation of this little old property. |
|
createFromInstance ( object $instance, string $propertyName ) : BetterReflection\Reflection\ReflectionMethod |
Create a reflection of an instance's property by it's name |
|
createFromName ( string $className, string $propertyName ) : BetterReflection\Reflection\ReflectionMethod |
Create a reflection of a class's property by it's name |
|
createFromNode ( BetterReflection\Reflector\Reflector $reflector, Property $node, ReflectionClass $declaringClass, boolean $declaredAtCompileTime = true ) : ReflectionProperty |
|
|
export ( ) |
|
|
getDeclaringClass ( ) : ReflectionClass |
|
|
getDefaultValue ( ) : mixed |
Get the default value of the property (as defined before constructor is
called, when the property is defined) |
|
getDocBlockTypeStrings ( ) : string[] |
Get the DocBlock type hints as an array of strings. |
|
getDocBlockTypes ( ) : phpDocumentor\Reflection\Type[] |
Get the types defined in the DocBlocks. This returns an array because
the parameter may have multiple (compound) types specified (for example
when you type hint pipe-separated "string|null", in which case this
would return an array of Type objects, one for string, one for null. |
|
getDocComment ( ) : string |
|
|
getModifiers ( ) : integer |
Get the core-reflection-compatible modifier values. |
|
getName ( ) : string |
Get the name of the property. |
|
isDefault ( ) : boolean |
Has the property been declared at compile-time? |
|
isPrivate ( ) : boolean |
Is the property private? |
|
isProtected ( ) : boolean |
Is the property protected? |
|
isPublic ( ) : boolean |
Is the property public? |
|
isStatic ( ) : boolean |
Is the property static? |
|
setVisibility ( integer $newVisibility ) |
Set the default visibility of this property. Use the core \ReflectionProperty::IS_* values as parameters, e.g.: |
|