Callback
in package
FinalYes
Table of Contents
Properties
Methods
- call() : mixed
- fromClosure() : self
- getReflectionFunction() : ReflectionFunction
- parameter() : mixed
- prepareParameter() : mixed
- __construct() : mixed
- getParameterType() : ReflectionType|null
- getPromotedClass() : class-string|null
Properties
$closure read-only
private
Closure
$closure
$function
private
ReflectionFunction|null
$function
Methods
call()
public
call(mixed ...$arguments) : mixed
Parameters
- $arguments : mixed
fromClosure()
public
static fromClosure(Closure $closure) : self
Parameters
- $closure : Closure
Return values
selfgetReflectionFunction()
public
getReflectionFunction() : ReflectionFunction
Return values
ReflectionFunctionparameter()
public
static parameter(mixed $closure, mixed $value[, string|int $index = 0 ]) : mixed
Parameters
- $closure : mixed
- $value : mixed
- $index : string|int = 0
prepareParameter()
public
prepareParameter(mixed $value[, string|int $index = 0 ]) : mixed
Parameters
- $value : mixed
- $index : string|int = 0
__construct()
private
__construct(Closure $closure) : mixed
Parameters
- $closure : Closure
getParameterType()
private
getParameterType(string|int $index) : ReflectionType|null
Parameters
- $index : string|int
Return values
ReflectionType|nullgetPromotedClass()
private
getPromotedClass(mixed $value) : class-string|null
Parameters
- $value : mixed