ParameterResolver
in package
Resolves parameters for a function call.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- resolveParameters() : array<string|int, mixed>
- getFunctionName() : string
- getParameterDefaultValue() : mixed
- Returns the default value of a function parameter.
Properties
$definitionResolver
private
DefinitionResolver
$definitionResolver
Methods
__construct()
public
__construct(DefinitionResolver $definitionResolver) : mixed
Parameters
- $definitionResolver : DefinitionResolver
-
Will be used to resolve nested definitions.
resolveParameters()
public
resolveParameters([MethodInjection|null $definition = null ][, ReflectionMethod|null $method = null ][, array<string|int, mixed> $parameters = [] ]) : array<string|int, mixed>
Parameters
- $definition : MethodInjection|null = null
- $method : ReflectionMethod|null = null
- $parameters : array<string|int, mixed> = []
Tags
Return values
array<string|int, mixed> —Parameters to use to call the function.
getFunctionName()
private
getFunctionName(ReflectionMethod $method) : string
Parameters
- $method : ReflectionMethod
Return values
stringgetParameterDefaultValue()
Returns the default value of a function parameter.
private
getParameterDefaultValue(ReflectionParameter $parameter, ReflectionMethod $function) : mixed
Parameters
- $parameter : ReflectionParameter
- $function : ReflectionMethod