Methods summary
public
TokenReflection\IReflectionClass |null
|
#
getDeclaringClass( )
Returns the declaring class reflection.
Returns the declaring class reflection.
Returns
|
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
|
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
|
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
|
|
public
string|null
|
#
getDeclaringTraitName( )
Returns the declaring trait name.
Returns the declaring trait name.
Returns
string|null
|