Reflection of a not tokenized but defined class property.
Descendant of the internal reflection with additional features.
Methods summary
public
|
|
public
TokenReflection\IReflectionClass
|
#
getDeclaringClass( )
Returns the declaring class reflection.
Returns the declaring class reflection.
Returns
Overrides
ReflectionProperty::getDeclaringClass()
Implementation of
|
public
string
|
#
getDeclaringClassName( )
Returns the declaring class name.
Returns the declaring class name.
Returns
string
Implementation of
|
public
null
|
#
getStartLine( )
Returns the definition start line number in the file.
Returns the definition start line number in the file.
Returns
null
Implementation of
|
public
null
|
#
getEndLine( )
Returns the definition end line number in the file.
Returns the definition end line number in the file.
Returns
null
Implementation of
|
public
boolean
|
#
hasAnnotation( string $name )
Checks if there is a particular annotation.
Checks if there is a particular annotation.
Parameters
- $name
string $name Annotation name
Returns
boolean
|
public
null
|
#
getAnnotation( string $name )
Returns a particular annotation value.
Returns a particular annotation value.
Parameters
- $name
string $name Annotation name
Returns
null
|
public
array
|
|
public
mixed
|
#
getDefaultValue( )
Returns the property default value.
Returns the property default value.
Returns
mixed
Implementation of
|
public
string
|
#
getDefaultValueDefinition( )
Returns the part of the source code defining the property default value.
Returns the part of the source code defining the property default value.
Returns
string
Implementation of
|
public
boolean
|
#
isInternal( )
Returns if the property is internal.
Returns if the property is internal.
Returns
boolean
Implementation of
|
public
boolean
|
#
isUserDefined( )
Returns if the property is user defined.
Returns if the property is user defined.
Returns
boolean
Implementation of
|
public
boolean
|
#
isTokenized( )
Returns if the current reflection comes from a tokenized source.
Returns if the current reflection comes from a tokenized source.
Returns
boolean
Implementation of
|
public
boolean
|
#
isDeprecated( )
Returns if the reflection subject is deprecated.
Returns if the reflection subject is deprecated.
Returns
boolean
Implementation of
|
public
TokenReflection\Broker
|
#
getBroker( )
Returns the reflection broker used by this reflection object.
Returns the reflection broker used by this reflection object.
Returns
Implementation of
|
public
array
|
#
getNamespaceAliases( )
Returns imported namespaces and aliases from the declaring namespace.
Returns imported namespaces and aliases from the declaring namespace.
Returns
array
|
public
TokenReflection\IReflectionClass |null
|
#
getDeclaringTrait( )
Returns the defining trait.
Returns the defining trait.
Returns
Implementation of
|
public
string|null
|
#
getDeclaringTraitName( )
Returns the declaring trait name.
Returns the declaring trait name.
Returns
string|null
Implementation of
|
public
boolean
|
#
isAccessible( )
Returns if the property is set accessible.
Returns if the property is set accessible.
Returns
boolean
Implementation of
|
public
|
#
setAccessible( boolean $accessible )
Sets a property to be accessible or not.
Sets a property to be accessible or not.
Parameters
- $accessible
boolean $accessible If the property should be accessible.
Overrides
ReflectionProperty::setAccessible()
Implementation of
|
public
TokenReflection\Php\ReflectionExtension
|
#
getExtension( )
Returns the PHP extension reflection.
Returns the PHP extension reflection.
Returns
|
public
string|boolean
|
#
getExtensionName( )
Returns the PHP extension name.
Returns the PHP extension name.
Returns
string|boolean
|
public
string
|
#
getFileName( )
Returns the file name the reflection object is defined in.
Returns the file name the reflection object is defined in.
Returns
string
|
public
string
|
#
getPrettyName( )
Returns an element pretty (docblock compatible) name.
Returns an element pretty (docblock compatible) name.
Returns
string
Implementation of
|
final public
mixed
|
#
__get( string $key )
Magic __get method.
Parameters
- $key
string $key Variable name
Returns
mixed
Implementation of
|
final public
boolean
|
#
__isset( string $key )
Magic __isset method.
Parameters
- $key
string $key Variable name
Returns
boolean
Implementation of
|
public static
TokenReflection\Php\ReflectionProperty
|
#
create( Reflector $internalReflection, TokenReflection\Broker $broker )
Creates a reflection instance.
Creates a reflection instance.
Parameters
- $internalReflection
ReflectionClass $internalReflection Internal reflection instance
- $broker
TokenReflection\Broker
$broker Reflection broker instance
Returns
Throws
Implementation of
|