NumericArrayResolver
in package
implements
ParameterResolver
Simply returns all the values of the $providedParameters array that are indexed by the parameter position (i.e. a number).
E.g. ->call($callable, ['foo', 'bar']) will simply resolve the parameters
to ['foo', 'bar'].
Parameters that are not indexed by a number (i.e. parameter position) will be ignored.
Table of Contents
Interfaces
- ParameterResolver
- Resolves the parameters to use to call the callable.
Methods
- getParameters() : array<string|int, mixed>
- Resolves the parameters to use to call the callable.
Methods
getParameters()
Resolves the parameters to use to call the callable.
public
getParameters(ReflectionFunctionAbstract $reflection, array<string|int, mixed> $providedParameters, array<string|int, mixed> $resolvedParameters) : array<string|int, mixed>
$resolvedParameters contains parameters that have already been resolved.
Each ParameterResolver must resolve parameters that are not already
in $resolvedParameters. That allows to chain multiple ParameterResolver.
Parameters
- $reflection : ReflectionFunctionAbstract
-
Reflection object for the callable.
- $providedParameters : array<string|int, mixed>
-
Parameters provided by the caller.
- $resolvedParameters : array<string|int, mixed>
-
Parameters resolved (indexed by parameter position).