Menu

## Callback
in package

FinalYes
Callback.php : 26

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

Callback.php : 30
`private Closure $closure`

#### $function

Callback.php : 28
`private ReflectionFunction|null $function`

### Methods

#### call()

Callback.php : 80
`public call(mixed ...$arguments) : mixed`

##### Parameters

$arguments : mixed

#### fromClosure()

Callback.php : 34
`public static fromClosure(Closure $closure) : self`

##### Parameters

$closure : Closure

##### Return values

self

#### getReflectionFunction()

Callback.php : 48
`public getReflectionFunction() : ReflectionFunction`

##### Return values

ReflectionFunction

#### parameter()

Callback.php : 39
`public static parameter(mixed $closure, mixed $value[, string|int $index = 0 ]) : mixed`

##### Parameters

$closure : mixed
$value : mixed
$index : string|int = 0

#### prepareParameter()

Callback.php : 53
`public prepareParameter(mixed $value[, string|int $index = 0 ]) : mixed`

##### Parameters

$value : mixed
$index : string|int = 0

#### __construct()

Callback.php : 30
`private __construct(Closure $closure) : mixed`

##### Parameters

$closure : Closure

#### getParameterType()

Callback.php : 91
`private getParameterType(string|int $index) : ReflectionType|null`

##### Parameters

$index : string|int

##### Return values

ReflectionType|null

#### getPromotedClass()

Callback.php : 109
`private getPromotedClass(mixed $value) : class-string|null`

##### Parameters

$value : mixed

##### Return values

class-string|null

## Search results