class ProxyDispatcher

Methods

static mixed
dispatch(string $className, string $methodName, array $arguments, Closure $originalMethod)

Dispatch an intercepted method through its aspect pipeline.

static array
resolveArguments(int $count, array $fixed, array $variadic = [])

Reconstruct the arguments visible to the intercepted method.

static mixed
resolveArgument(int $count, array $fixed, array $variadic, int $position)

Resolve one argument visible to the intercepted method.

static array
captureVariadicArguments(array $arguments, int $limit, bool $byReference)

Capture the positional variadic arguments visible to the original call.

Details

at line 17
static mixed dispatch(string $className, string $methodName, array $arguments, Closure $originalMethod)

Dispatch an intercepted method through its aspect pipeline.

Parameters

string $className
string $methodName
array $arguments
Closure $originalMethod

Return Value

mixed

at line 46
static array resolveArguments(int $count, array $fixed, array $variadic = [])

Reconstruct the arguments visible to the intercepted method.

Parameters

int $count
array $fixed
array $variadic

Return Value

array

at line 59
static mixed resolveArgument(int $count, array $fixed, array $variadic, int $position)

Resolve one argument visible to the intercepted method.

Parameters

int $count
array $fixed
array $variadic
int $position

Return Value

mixed

at line 78
static array captureVariadicArguments(array $arguments, int $limit, bool $byReference)

Capture the positional variadic arguments visible to the original call.

Parameters

array $arguments
int $limit
bool $byReference

Return Value

array