Methods summary
public
|
|
public
string
|
#
getName( )
Returns the name.
Returns
string
Implementation of
|
public
string
|
#
getShortName( )
Returns the unqualified name (UQN).
Returns the unqualified name (UQN).
Returns
string
Implementation of
|
public
TokenReflection\IReflectionClass |null
|
#
getDeclaringClass( )
Returns the declaring class reflection.
Returns the declaring class reflection.
Returns
Implementation of
|
public
string|null
|
#
getDeclaringClassName( )
Returns the declaring class name.
Returns the declaring class name.
Returns
string|null
Implementation of
|
public
string
|
#
getNamespaceName( )
Returns the namespace name.
Returns the namespace name.
Returns
string
Implementation of
|
public
boolean
|
#
inNamespace( )
Returns if the function/method is defined within a namespace.
Returns if the function/method is defined within a namespace.
Returns
boolean
Implementation of
|
public
null
|
#
getExtension( )
Returns the PHP extension reflection.
Returns the PHP extension reflection.
Returns
null
|
public
boolean
|
#
getExtensionName( )
Returns the PHP extension name.
Returns the PHP extension name.
Returns
boolean
|
public
null
|
#
getFileName( )
Returns the file name the reflection object is defined in.
Returns the file name the reflection object is defined in.
Returns
null
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
|
#
getValue( )
Returns the constant value.
Returns the constant value.
Returns
mixed
Implementation of
|
public
string
|
#
getValueDefinition( )
Returns the part of the source code defining the constant value.
Returns the part of the source code defining the constant value.
Returns
string
Implementation of
|
public
string
|
#
getOriginalValueDefinition( )
Returns the originaly provided value definition.
Returns the originaly provided value definition.
Returns
string
|
public
boolean
|
#
isInternal( )
Returns if the constant is internal.
Returns if the constant is internal.
Returns
boolean
Implementation of
|
public
boolean
|
#
isUserDefined( )
Returns if the constant is user defined.
Returns if the constant 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
string
|
#
getPrettyName( )
Returns an element pretty (docblock compatible) name.
Returns an element pretty (docblock compatible) name.
Returns
string
Implementation of
|
public
string
|
#
__toString( )
Returns the string representation of the reflection object.
Returns the string representation of the reflection object.
Returns
string
Implementation of
|
public static
string|null
|
#
export( TokenReflection\Broker $broker, string|object|null $class, string $constant, boolean $return = false )
Exports a reflected object.
Exports a reflected object.
Parameters
- $broker
TokenReflection\Broker
$broker Broker instance
- $class
string|object|null $class Class name, class instance or null
- $constant
string $constant Constant name
- $return
boolean $return Return the export instead of outputting it
Returns
string|null
Throws
|
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
Implementation of
|
public
boolean
|
#
isValid( )
Returns if the constant definition is valid.
Returns if the constant definition is valid.
Internal constants are always valid.
Returns
boolean
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
null
|
#
create( Reflector $internalReflection, TokenReflection\Broker $broker )
Creates a reflection instance.
Creates a reflection instance.
Not supported for constants since there is no internal constant
reflection.
Parameters
- $internalReflection
ReflectionClass $internalReflection Internal reflection instance
- $broker
TokenReflection\Broker
$broker Reflection broker instance
Returns
null
Implementation of
|