Reflection of a not tokenized but defined class method.
Descendant of the internal reflection with additional features.
Methods summary
public
|
|
public
TokenReflection\IReflectionClass
|
#
getDeclaringClass( )
Returns the declaring class reflection.
Returns the declaring class reflection.
Returns
Overrides
ReflectionMethod::getDeclaringClass()
Implementation of
|
public
string
|
#
getDeclaringClassName( )
Returns the declaring class name.
Returns the declaring class name.
Returns
string
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
|
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\ReflectionMethod
|
#
getPrototype( )
Returns the method prototype.
Returns the method prototype.
Returns
Overrides
ReflectionMethod::getPrototype()
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
boolean
|
#
isAccessible( )
Returns if the method is set accessible.
Returns if the method is set accessible.
Returns
boolean
|
public
|
#
setAccessible( boolean $accessible )
Sets a method to be accessible or not.
Sets a method to be accessible or not.
Introduced in PHP 5.3.2. Throws an exception if run on an older version.
Parameters
- $accessible
boolean $accessible
Throws
Overrides
ReflectionMethod::setAccessible()
Implementation of
|
public
boolean
|
#
is( integer $filter = null )
Shortcut for isPublic(), ... methods that allows or-ed modifiers.
Shortcut for isPublic(), ... methods that allows or-ed modifiers.
Parameters
- $filter
integer $filter Filter
Returns
boolean
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
|
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( object $object )
Returns the function/method as closure.
Returns the function/method as closure.
Parameters
- $object
object $object Object
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
string
|
#
getOriginalName( )
Returns the original name when importing from a trait.
Returns the original name when importing from a trait.
Returns
string
Implementation of
|
public
null
|
#
getOriginal( )
Returns the original method when importing from a trait.
Returns the original method when importing from a trait.
Returns
null
Implementation of
|
public
null
|
#
getOriginalModifiers( )
Returns the original modifiers value when importing from a trait.
Returns the original modifiers value when importing from a trait.
Returns
null
Implementation of
|
public
TokenReflection\IReflectionClass |null
|
#
getDeclaringTrait( )
Returns the defining trait.
Returns the defining trait.
Returns
Implementation of
|
public
string|null
|
#
getDeclaringTraitName( )
Returns the declaring trait name.
Returns the declaring trait name.
Returns
string|null
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\IReflection
|
#
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(),
getExtension(),
getExtensionName(),
getFileName(),
getName(),
getNamespaceName(),
getNumberOfParameters(),
getNumberOfRequiredParameters(),
getShortName(),
getStartLine(),
getStaticVariables(),
inNamespace(),
isClosure(),
isDeprecated(),
isInternal(),
isUserDefined(),
returnsReference()
|