Overview

Namespaces

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

Classes

  • ReflectionClass
  • ReflectionConstant
  • ReflectionExtension
  • ReflectionFunction
  • ReflectionMethod
  • ReflectionParameter
  • ReflectionProperty

Interfaces

  • IReflection
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class ReflectionExtension

Reflection of a not tokenized but defined extension.

Descendant of the internal reflection with additional features.

ReflectionExtension implements Reflector
Extended by TokenReflection\Php\ReflectionExtension implements TokenReflection\Php\IReflection, TokenReflection\IReflectionExtension
Namespace: TokenReflection\Php
Located at Php/ReflectionExtension.php
Methods summary
public
# __construct( string $name, TokenReflection\Broker $broker )

Constructor.

Constructor.

Parameters

$name
string
$name Extension name
$broker
TokenReflection\Broker
$broker Reflection broker

Overrides

ReflectionExtension::__construct()
public boolean
# isInternal( )

Returns if the constant is internal.

Returns if the constant is internal.

Returns

boolean

Implementation of

TokenReflection\IReflection::isInternal()
public boolean
# isUserDefined( )

Returns if the constant is user defined.

Returns if the constant is user defined.

Returns

boolean

Implementation of

TokenReflection\IReflection::isUserDefined()
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

TokenReflection\IReflection::isTokenized()
public boolean
# isDeprecated( )

Returns if the reflection subject is deprecated.

Returns if the reflection subject is deprecated.

Returns

boolean
public TokenReflection\IReflectionClass|null
# getClass( string $name )

Returns a class reflection.

Returns a class reflection.

Parameters

$name
string
$name Class name

Returns

TokenReflection\IReflectionClass|null

Implementation of

TokenReflection\IReflectionExtension::getClass()
public array
# getClasses( )

Returns classes defined by this extension.

Returns classes defined by this extension.

Returns

array

Overrides

ReflectionExtension::getClasses()

Implementation of

TokenReflection\IReflectionExtension::getClasses()
public mixed|false
# getConstant( string $name )

Returns a constant value.

Returns a constant value.

Parameters

$name
string
$name Constant name

Returns

mixed|false

Implementation of

TokenReflection\IReflectionExtension::getConstant()
public TokenReflection\IReflectionConstant
# getConstantReflection( string $name )

Returns a constant reflection.

Returns a constant reflection.

Parameters

$name
string
$name Constant name

Returns

TokenReflection\IReflectionConstant

Implementation of

TokenReflection\IReflectionExtension::getConstantReflection()
public array
# getConstantReflections( )

Returns reflections of defined constants.

Returns reflections of defined constants.

Returns

array

Implementation of

TokenReflection\IReflectionExtension::getConstantReflections()
public TokenReflection\IReflectionFunction
# getFunction( string $name )

Returns a function reflection.

Returns a function reflection.

Parameters

$name
string
$name Function name

Returns

TokenReflection\IReflectionFunction

Implementation of

TokenReflection\IReflectionExtension::getFunction()
public array
# getFunctions( )

Returns functions defined by this extension.

Returns functions defined by this extension.

Returns

array

Overrides

ReflectionExtension::getFunctions()

Implementation of

TokenReflection\IReflectionExtension::getFunctions()
public array
# getFunctionNames( )

Returns names of functions defined by this extension.

Returns names of functions defined by this extension.

Returns

array

Implementation of

TokenReflection\IReflectionExtension::getFunctionNames()
public string
# getPrettyName( )

Returns an element pretty (docblock compatible) name.

Returns an element pretty (docblock compatible) name.

Returns

string

Implementation of

TokenReflection\IReflection::getPrettyName()
public TokenReflection\Broker
# getBroker( )

Returns the reflection broker used by this reflection object.

Returns the reflection broker used by this reflection object.

Returns

TokenReflection\Broker

Implementation of

TokenReflection\IReflection::getBroker()
final public mixed
# __get( string $key )

Magic __get method.

Magic __get method.

Parameters

$key
string
$key Variable name

Returns

mixed

Implementation of

TokenReflection\IReflection::__get()
final public boolean
# __isset( string $key )

Magic __isset method.

Magic __isset method.

Parameters

$key
string
$key Variable name

Returns

boolean

Implementation of

TokenReflection\IReflection::__isset()
public static TokenReflection\Php\ReflectionExtension
# 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

TokenReflection\Php\ReflectionExtension

Throws

TokenReflection\Exception\RuntimeException
If an invalid internal reflection object was provided.

Implementation of

TokenReflection\Php\IReflection::create()
Methods inherited from ReflectionExtension
__toString(), export(), getClassNames(), getConstants(), getDependencies(), getINIEntries(), getName(), getVersion(), info()
Properties inherited from ReflectionExtension
$name
PHP Token Reflection API documentation generated by ApiGen 2.8.0