final class ParameterConverter

internal  
 

Converts parameters between HTTP requests, presenters, and URLs.

Methods

static array
toArguments(ReflectionFunctionAbstract $method, array $args)

No description

static void
toParameters(ReflectionMethod $method, array $args, array $supplemental = [], array|null $missing = null)

Converts list of arguments to named parameters & check types.

static bool
convertType(mixed $val, string $types)

Lossless type conversion.

static string
getType(ReflectionParameter|ReflectionProperty $item)

No description

Details

at line 24
static array toArguments(ReflectionFunctionAbstract $method, array $args)

No description

Parameters

ReflectionFunctionAbstract $method
array $args

Return Value

array

at line 66
static void toParameters(ReflectionMethod $method, array $args, array $supplemental = [], array|null $missing = null)

internal  
 

Converts list of arguments to named parameters & check types.

Parameters

ReflectionMethod $method
array $args
array $supplemental
array|null $missing arguments

Return Value

void

Exceptions

InvalidLinkException

at line 132
static bool convertType(mixed $val, string $types)

Lossless type conversion.

Parameters

mixed $val
string $types

Return Value

bool

at line 180
static string getType(ReflectionParameter|ReflectionProperty $item)

No description

Parameters

ReflectionParameter|ReflectionProperty $item

Return Value

string

Traits

StaticClass