Reflection of a not tokenized but defined function.
Descendant of the internal reflection with additional features.
Methods summary
public
|
|
public
TokenReflection\IReflectionExtension
|
#
getExtension( )
Returns the PHP extension reflection.
Returns the PHP extension reflection.
Returns
Overrides
ReflectionFunctionAbstract::getExtension()
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
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
TokenReflection\Php\ReflectionParameter
|
#
getParameter( integer|string $parameter )
Returns a particular parameter.
Returns a particular parameter.
Parameters
- $parameter
integer|string $parameter Parameter name or position
Returns
Throws
Implementation of
|
public
array
|
#
getParameters( )
Returns function parameters.
Returns function parameters.
Returns
array
Overrides
ReflectionFunctionAbstract::getParameters()
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
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
Closure
|
#
getClosure( )
Returns the function/method as closure.
Returns the function/method as closure.
Returns
Closure
Implementation of
|
public
string|null
|
#
getClosureScopeClass( )
Returns the closure scope class.
Returns the closure scope class.
Returns
string|null
|
public
null
|
#
getClosureThis( )
Returns this pointer bound to closure.
Returns this pointer bound to closure.
Returns
null
|
public
boolean
|
#
isValid( )
Returns if the function definition is valid.
Returns if the function definition is valid.
Internal functions are always valid.
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 static
TokenReflection\Php\ReflectionFunction
|
#
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
|
Methods inherited from ReflectionFunctionAbstract
getDocComment(),
getEndLine(),
getExtensionName(),
getFileName(),
getName(),
getNamespaceName(),
getNumberOfParameters(),
getNumberOfRequiredParameters(),
getShortName(),
getStartLine(),
getStaticVariables(),
inNamespace(),
isClosure(),
isDeprecated(),
isInternal(),
isUserDefined(),
returnsReference()
|