Overview

Namespaces

  • TokenReflection
    • Broker
      • Backend
    • Dummy
    • Exception
    • Invalid
    • Php
    • Stream

Classes

  • Broker
  • ReflectionAnnotation
  • ReflectionBase
  • ReflectionClass
  • ReflectionConstant
  • ReflectionElement
  • ReflectionFile
  • ReflectionFileNamespace
  • ReflectionFunction
  • ReflectionFunctionBase
  • ReflectionMethod
  • ReflectionNamespace
  • ReflectionParameter
  • ReflectionProperty
  • Resolver

Interfaces

  • IReflection
  • IReflectionClass
  • IReflectionConstant
  • IReflectionExtension
  • IReflectionFunction
  • IReflectionFunctionBase
  • IReflectionMethod
  • IReflectionNamespace
  • IReflectionParameter
  • IReflectionProperty
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class ReflectionFunction

Tokenized function reflection.

TokenReflection\ReflectionBase implements TokenReflection\IReflection
Extended by TokenReflection\ReflectionElement
Extended by TokenReflection\ReflectionFunctionBase implements TokenReflection\IReflectionFunctionBase
Extended by TokenReflection\ReflectionFunction implements TokenReflection\IReflectionFunction
Namespace: TokenReflection
Located at ReflectionFunction.php
Methods summary
public boolean
# isDisabled( )

Returns if the function is is disabled via the disable_functions directive.

Returns if the function is is disabled via the disable_functions directive.

Returns

boolean

Implementation of

TokenReflection\IReflectionFunction::isDisabled()
public string
# __toString( )

Returns the string representation of the reflection object.

Returns the string representation of the reflection object.

Returns

string
public static string|null
# export( TokenReflection\Broker $broker, string $function, boolean $return = false )

Exports a reflected object.

Exports a reflected object.

Parameters

$broker
TokenReflection\Broker
$broker Broker instance
$function
string
$function Function name
$return
boolean
$return Return the export instead of outputting it

Returns

string|null

Throws

TokenReflection\Exception\RuntimeException
If requested parameter doesn't exist.
public mixed
# invoke( )

Calls the function.

Calls the function.

Returns

mixed
public mixed
# invokeArgs( array $args = array() )

Calls the function.

Calls the function.

Parameters

$args
array
$args Function parameter values

Returns

mixed

Throws

TokenReflection\Exception\RuntimeException
If the required function does not exist.

Implementation of

TokenReflection\IReflectionFunction::invokeArgs()
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

TokenReflection\IReflectionFunction::getNamespaceAliases()
public Closure
# getClosure( )

Returns the function/method as closure.

Returns the function/method as closure.

Returns

Closure

Implementation of

TokenReflection\IReflectionFunction::getClosure()
public null
# getClosureScopeClass( )

Returns the closure scope class.

Returns the closure scope class.

Returns

null

Overrides

TokenReflection\ReflectionFunctionBase::getClosureScopeClass()
public boolean
# isValid( )

Returns if the function definition is valid.

Returns if the function definition is valid.

Returns

boolean

Implementation of

TokenReflection\IReflectionFunction::isValid()
protected TokenReflection\ReflectionElement
# processParent( TokenReflection\IReflection $parent, TokenReflection\Stream\StreamBase $tokenStream )

Processes the parent reflection object.

Processes the parent reflection object.

Parameters

$parent
TokenReflection\IReflection
$parent Parent reflection object
$tokenStream
TokenReflection\Stream\StreamBase
$tokenStream Token substream

Returns

TokenReflection\ReflectionElement

Throws

TokenReflection\Exception\ParseException
If an invalid parent reflection object was provided.

Overrides

TokenReflection\ReflectionElement::processParent()
protected TokenReflection\ReflectionFunction
# parse( TokenReflection\Stream\StreamBase $tokenStream, TokenReflection\IReflection $parent )

Parses reflected element metadata from the token stream.

Parses reflected element metadata from the token stream.

Parameters

$tokenStream
TokenReflection\Stream\StreamBase
$tokenStream Token substream
$parent
TokenReflection\IReflection
$parent Parent reflection object

Returns

TokenReflection\ReflectionFunction
Methods inherited from TokenReflection\ReflectionFunctionBase
aliasParameters(), getClosureThis(), getName(), getNamespaceName(), getNumberOfParameters(), getNumberOfRequiredParameters(), getParameter(), getParameters(), getPrettyName(), getShortName(), getStaticVariables(), inNamespace(), isClosure(), parseChildren(), parseName(), parseParameters(), parseReturnsReference(), parseStaticVariables(), returnsReference()
Methods inherited from TokenReflection\ReflectionElement
__construct(), getDocblockTemplates(), getEndLine(), getEndPosition(), getExtension(), getExtensionName(), getFileName(), getFileReflection(), getSource(), getStartLine(), getStartPosition(), parseDocComment(), parseStream()
Methods inherited from TokenReflection\ReflectionBase
__get(), __isset(), exists(), get(), getAnnotation(), getAnnotations(), getBroker(), getDocComment(), hasAnnotation(), isDeprecated(), isInternal(), isTokenized(), isUserDefined()
Constants inherited from TokenReflection\ReflectionElement
DOCBLOCK_TEMPLATE_END, DOCBLOCK_TEMPLATE_START
Properties inherited from TokenReflection\ReflectionFunctionBase
$namespaceName, $parameters
Properties inherited from TokenReflection\ReflectionElement
$docblockTemplates, $startPosition
Properties inherited from TokenReflection\ReflectionBase
$docComment, $name
PHP Token Reflection API documentation generated by ApiGen 2.8.0