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 ReflectionFile

Processed file class.

TokenReflection\ReflectionBase implements TokenReflection\IReflection
Extended by TokenReflection\ReflectionFile
Namespace: TokenReflection
Located at ReflectionFile.php
Methods summary
public array
# getNamespaces( )

Returns an array of namespaces in the current file.

Returns an array of namespaces in the current file.

Returns

array
public
# __toString( )

Returns the string representation of the reflection object.

Returns the string representation of the reflection object.

Throws

TokenReflection\Exception\RuntimeException
If the method is called, because it's unsupported.
public static
# export( TokenReflection\Broker $broker, string $argument, boolean $return = false )

Exports a reflected object.

Exports a reflected object.

Parameters

$broker
TokenReflection\Broker
$broker Broker instance
$argument
string
$argument Reflection object name
$return
boolean
$return Return the export instead of outputting it

Throws

TokenReflection\Exception\RuntimeException
If the method is called, because it's unsupported.
public string
# getSource( )

Outputs the file source code.

Outputs the file source code.

Returns

string
protected TokenReflection\ReflectionFile
# parseStream( TokenReflection\Stream\StreamBase $tokenStream, TokenReflection\IReflection $parent = null )

Parses the token substream and prepares namespace reflections from the file.

Parses the token substream and prepares namespace reflections from the file.

Parameters

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

Returns

TokenReflection\ReflectionFile
Methods inherited from TokenReflection\ReflectionBase
__construct(), __get(), __isset(), exists(), get(), getAnnotation(), getAnnotations(), getBroker(), getDocComment(), getName(), getPrettyName(), hasAnnotation(), isDeprecated(), isInternal(), isTokenized(), isUserDefined()
Properties inherited from TokenReflection\ReflectionBase
$docComment, $name
PHP Token Reflection API documentation generated by ApiGen 2.8.0