ArgumentMetadataFactory
in package
implements
ArgumentMetadataFactoryInterface
Builds {@see ArgumentMetadata} objects based on the given Controller.
Tags
Interfaces, Classes and Traits
- ArgumentMetadataFactoryInterface
- Builds method argument data.
Table of Contents
- createArgumentMetadata() : array<string|int, ArgumentMetadata>
- getType() : string|null
- Returns an associated type to the given parameter if available.
Methods
createArgumentMetadata()
public
createArgumentMetadata(mixed $controller) : array<string|int, ArgumentMetadata>
Parameters
- $controller : mixed
-
The controller to resolve the arguments for
Return values
array<string|int, ArgumentMetadata> —getType()
Returns an associated type to the given parameter if available.
private
getType(ReflectionParameter $parameter, string|null $class) : string|null
Parameters
- $parameter : ReflectionParameter
- $class : string|null