Pionia Core

Callback
in package

FinalYes

Table of Contents

Properties

$closure  : Closure
$function  : ReflectionFunction|null

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
self

getReflectionFunction()

public getReflectionFunction() : ReflectionFunction
Return values
ReflectionFunction

parameter()

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|null

getPromotedClass()

private getPromotedClass(mixed $value) : class-string|null
Parameters
$value : mixed
Return values
class-string|null

        
On this page

Search results