Documentation

ParameterResolver
in package

Resolves parameters for a function call.

Tags
since
4.2
author

Matthieu Napoli matthieu@mnapoli.fr

Table of Contents

Properties

$definitionResolver  : DefinitionResolver

Methods

__construct()  : mixed
resolveParameters()  : array<string|int, mixed>
getFunctionName()  : string
getParameterDefaultValue()  : mixed
Returns the default value of a function parameter.

Properties

Methods

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
throws
InvalidDefinition

A parameter has no value defined or guessable.

Return values
array<string|int, mixed>

Parameters to use to call the function.

getFunctionName()

private getFunctionName(ReflectionMethod $method) : string
Parameters
$method : ReflectionMethod
Return values
string

getParameterDefaultValue()

Returns the default value of a function parameter.

private getParameterDefaultValue(ReflectionParameter $parameter, ReflectionMethod $function) : mixed
Parameters
$parameter : ReflectionParameter
$function : ReflectionMethod
Tags
throws
InvalidDefinition

Can't get default values from PHP internal classes and functions


        
On this page

Search results