Interface IReflectionConstant
Common reflection constant interface.
-
TokenReflection\IReflectionConstant
implements
TokenReflection\IReflection
Methods summary
public
string
|
#
getShortName( )
Returns the unqualified name (UQN).
Returns the unqualified name (UQN).
Returns
string
|
public
TokenReflection\IReflectionClass
|
#
getDeclaringClass( )
Returns the declaring class reflection.
Returns the declaring class reflection.
Returns
|
public
string
|
|
public
string
|
#
getNamespaceName( )
Returns the namespace name.
Returns the namespace name.
Returns
string
|
public
boolean
|
#
inNamespace( )
Returns if the constant is defined within a namespace.
Returns if the constant is defined within a namespace.
Returns
boolean
|
public
array
|
#
getNamespaceAliases( )
Returns imported namespaces and aliases from the declaring namespace.
Returns imported namespaces and aliases from the declaring namespace.
Returns
array
|
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
integer
|
#
getStartLine( )
Returns the definition start line number in the file.
Returns the definition start line number in the file.
Returns
integer
|
public
integer
|
#
getEndLine( )
Returns the definition end line number in the file.
Returns the definition end line number in the file.
Returns
integer
|
public
mixed
|
#
getValue( )
Returns the constant value.
Returns the constant value.
Returns
mixed
|
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
|
public
string
|
#
__toString( )
Returns the string representation of the reflection object.
Returns the string representation of the reflection object.
Returns
string
|
public
boolean
|
#
isValid( )
Returns if the constant definition is valid.
Returns if the constant definition is valid.
That means that the source code is valid and the constant name is unique
within parsed files.
Returns
boolean
|
public
boolean
|
#
isDeprecated( )
Returns if the constant is deprecated.
Returns if the constant is deprecated.
Returns
boolean
|