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

Interface IReflectionMethod

Common reflection method interface.

TokenReflection\IReflectionMethod implements TokenReflection\IReflectionFunctionBase

Direct known implementers

TokenReflection\Php\ReflectionMethod, TokenReflection\ReflectionMethod
Namespace: TokenReflection
Located at IReflectionMethod.php
Methods summary
public TokenReflection\IReflectionClass|null
# getDeclaringClass( )

Returns the declaring class reflection.

Returns the declaring class reflection.

Returns

TokenReflection\IReflectionClass|null
public string|null
# getDeclaringClassName( )

Returns the declaring class name.

Returns the declaring class name.

Returns

string|null
public integer
# getModifiers( )

Returns method modifiers.

Returns method modifiers.

Returns

integer
public boolean
# isAbstract( )

Returns if the method is abstract.

Returns if the method is abstract.

Returns

boolean
public boolean
# isFinal( )

Returns if the method is final.

Returns if the method is final.

Returns

boolean
public boolean
# isPrivate( )

Returns if the method is private.

Returns if the method is private.

Returns

boolean
public boolean
# isProtected( )

Returns if the method is protected.

Returns if the method is protected.

Returns

boolean
public boolean
# isPublic( )

Returns if the method is public.

Returns if the method is public.

Returns

boolean
public boolean
# isStatic( )

Returns if the method is static.

Returns if the method is static.

Returns

boolean
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
public boolean
# isConstructor( )

Returns if the method is a constructor.

Returns if the method is a constructor.

Returns

boolean
public boolean
# isDestructor( )

Returns if the method is a destructor.

Returns if the method is a destructor.

Returns

boolean
public TokenReflection\IReflectionMethod
# getPrototype( )

Returns the method prototype.

Returns the method prototype.

Returns

TokenReflection\IReflectionMethod
public mixed
# invoke( object $object, mixed $args )

Calls the method on an given instance.

Calls the method on an given instance.

Parameters

$object
object
$object Class instance
$args
mixed
$args

Returns

mixed
public mixed
# invokeArgs( object $object, array $args )

Calls the method on an given object.

Calls the method on an given object.

Parameters

$object
object
$object Class instance
$args
array
$args Method parameter values

Returns

mixed
public
# setAccessible( boolean $accessible )

Sets a method to be accessible or not.

Sets a method to be accessible or not.

Parameters

$accessible
boolean
$accessible If the method should be accessible.
public Closure
# getClosure( object $object )

Returns the function/method as closure.

Returns the function/method as closure.

Parameters

$object
object
$object Object

Returns

Closure
public string|null
# getOriginalName( )

Returns the original name when importing from a trait.

Returns the original name when importing from a trait.

Returns

string|null
public TokenReflection\IReflectionMethod|null
# getOriginal( )

Returns the original method when importing from a trait.

Returns the original method when importing from a trait.

Returns

TokenReflection\IReflectionMethod|null
public integer|null
# getOriginalModifiers( )

Returns the original modifiers value when importing from a trait.

Returns the original modifiers value when importing from a trait.

Returns

integer|null
public TokenReflection\IReflectionClass|null
# getDeclaringTrait( )

Returns the defining trait.

Returns the defining trait.

Returns

TokenReflection\IReflectionClass|null
public string|null
# getDeclaringTraitName( )

Returns the declaring trait name.

Returns the declaring trait name.

Returns

string|null
Methods inherited from TokenReflection\IReflectionFunctionBase
getDocComment(), getEndLine(), getExtension(), getExtensionName(), getFileName(), getNamespaceName(), getNumberOfParameters(), getNumberOfRequiredParameters(), getParameter(), getParameters(), getStartLine(), getStaticVariables(), inNamespace(), isClosure(), isDeprecated(), returnsReference()
Methods inherited from TokenReflection\IReflection
__get(), __isset(), getBroker(), getName(), getPrettyName(), isInternal(), isTokenized(), isUserDefined()
PHP Token Reflection API documentation generated by ApiGen 2.8.0