Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Invoker\ParameterResolver\ResolverChain Class Reference
Inheritance diagram for Invoker\ParameterResolver\ResolverChain:
Invoker\ParameterResolver\ParameterResolver

Public Member Functions

 __construct (array $resolvers=[])
 
 appendResolver (ParameterResolver $resolver)
 Push a parameter resolver after the ones already registered.
 
 getParameters (ReflectionFunctionAbstract $reflection, array $providedParameters, array $resolvedParameters)
 Resolves the parameters to use to call the callable.
 
 prependResolver (ParameterResolver $resolver)
 Insert a parameter resolver before the ones already registered.
 

Member Function Documentation

◆ getParameters()

Invoker\ParameterResolver\ResolverChain::getParameters ( ReflectionFunctionAbstract $reflection,
array $providedParameters,
array $resolvedParameters )

Resolves the parameters to use to call the callable.

$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
ReflectionFunctionAbstract$reflectionReflection object for the callable.
array$providedParametersParameters provided by the caller.
array$resolvedParametersParameters resolved (indexed by parameter position).
Return values
array

Implements Invoker\ParameterResolver\ParameterResolver.


The documentation for this class was generated from the following file: