Methods summary
public
|
#
__construct( callable $callable )
The constructor.
Parameters
|
public
mixed
|
#
__invoke( )
Invokes the callable with parameter(s).
Invokes the callable with parameter(s).
Returns
mixed The return value.
|
public
mixed
|
#
invoke( )
Invokes the callable with parameter(s).
Invokes the callable with parameter(s).
Returns
mixed The return value.
|
public
mixed
|
#
invokeArgs( array $parameters = [] )
Invokes the callable with an array of parameter(s).
Invokes the callable with an array of parameter(s).
Parameters
- $parameters
- The parameter(s) to be passed to the callable.
Returns
mixed The return value.
|
public
callable
|
#
get( )
Returns the raw callable.
Returns the raw callable.
Returns
callable The callable.
|
public
boolean
|
#
isFunction( )
Returns whether the callable is a function.
Returns whether the callable is a function.
Returns
boolean True if it is a function, false otherwise.
|
public
boolean
|
#
isClosure( )
Returns whether the callable is a closure.
Returns whether the callable is a closure.
Returns
boolean True if it is a Closure, false otherwise.
|
public
boolean
|
#
isInstanceMethod( )
Returns whether the callable is an instance method.
Returns whether the callable is an instance method.
Returns
boolean True if it is an instance method, false otherwise.
|
public
boolean
|
#
isClassMethod( )
Returns whether the callable is a class method.
Returns whether the callable is a class method.
Returns
boolean True if it is a class method, false otherwise.
|