Methods summary
public
|
|
public
string
|
#
getName( )
Returns the name.
Returns
string
Implementation of
|
public
boolean
|
#
isInternal( )
Returns if the namespace is internal.
Returns if the namespace is internal.
Always false.
Returns
boolean
Implementation of
|
public
boolean
|
#
isUserDefined( )
Returns if the namespace is user defined.
Returns if the namespace is user defined.
Always true.
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
|
#
hasClass( string $className )
Returns if the namespace contains a class of the given name.
Returns if the namespace contains a class of the given name.
Parameters
- $className
string $className Class name
Returns
boolean
Implementation of
|
public
TokenReflection\ReflectionClass
|
#
getClass( string $className )
Return a class reflection.
Return a class reflection.
Parameters
- $className
string $className Class name
Returns
Throws
Implementation of
|
public
array
|
#
getClasses( )
Returns class reflections.
Returns class reflections.
Returns
array
Implementation of
|
public
array
|
#
getClassNames( )
Returns class names (FQN).
Returns class names (FQN).
Returns
array
Implementation of
|
public
array
|
#
getClassShortNames( )
Returns class unqualified names (UQN).
Returns class unqualified names (UQN).
Returns
array
Implementation of
|
public
boolean
|
#
hasConstant( string $constantName )
Returns if the namespace contains a constant of the given name.
Returns if the namespace contains a constant of the given name.
Parameters
- $constantName
string $constantName Constant name
Returns
boolean
Implementation of
|
public
TokenReflection\ReflectionConstant
|
#
getConstant( string $constantName )
Returns a constant reflection.
Returns a constant reflection.
Parameters
- $constantName
string $constantName Constant name
Returns
Throws
Implementation of
|
public
array
|
#
getConstants( )
Returns constant reflections.
Returns constant reflections.
Returns
array
Implementation of
|
public
array
|
#
getConstantNames( )
Returns constant names (FQN).
Returns constant names (FQN).
Returns
array
Implementation of
|
public
array
|
#
getConstantShortNames( )
Returns constant unqualified names (UQN).
Returns constant unqualified names (UQN).
Returns
array
Implementation of
|
public
boolean
|
#
hasFunction( string $functionName )
Returns if the namespace contains a function of the given name.
Returns if the namespace contains a function of the given name.
Parameters
- $functionName
string $functionName Function name
Returns
boolean
Implementation of
|
public
TokenReflection\ReflectionFunction
|
#
getFunction( string $functionName )
Returns a function reflection.
Returns a function reflection.
Parameters
- $functionName
string $functionName Function name
Returns
Throws
Implementation of
|
public
array
|
#
getFunctions( )
Returns function reflections.
Returns function reflections.
Returns
array
Implementation of
|
public
array
|
#
getFunctionNames( )
Returns function names (FQN).
Returns function names (FQN).
Returns
array
Implementation of
|
public
array
|
#
getFunctionShortNames( )
Returns function unqualified names (UQN).
Returns function unqualified names (UQN).
Returns
array
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 $namespace, boolean $return = false )
Exports a reflected object.
Exports a reflected object.
Parameters
- $broker
TokenReflection\Broker
$broker Broker instance
- $namespace
string $namespace Namespace name
- $return
boolean $return Return the export instead of outputting it
Returns
string|null
Throws
|
public
TokenReflection\ReflectionNamespace
|
|
public
|
#
getSource( )
Returns the appropriate source code part.
Returns the appropriate source code part.
Impossible for namespaces.
Throws
|
public
TokenReflection\Broker |null
|
#
getBroker( )
Returns the reflection broker used by this reflection object.
Returns the reflection broker used by this reflection object.
Returns
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
|