class NameMapperResolver

Methods

__construct(Container $container)

Create a new name mapper resolver.

NameMapper|null
resolveInput(DataAttributesCollection $attributes, NameMapper|null $default = null)

Resolve the input mapper declared by the attributes.

NameMapper|null
resolveOutput(DataAttributesCollection $attributes, NameMapper|null $default = null)

Resolve the output mapper declared by the attributes.

NameMapper|null
resolveConfigured(string|null $mapper)

Resolve a configured mapper class.

resolve(string|int|NameMapper $mapper)

Resolve one mapper declaration.

Details

at line 19
__construct(Container $container)

Create a new name mapper resolver.

Parameters

Container $container

at line 27
NameMapper|null resolveInput(DataAttributesCollection $attributes, NameMapper|null $default = null)

Resolve the input mapper declared by the attributes.

Parameters

DataAttributesCollection $attributes
NameMapper|null $default

Return Value

NameMapper|null

at line 46
NameMapper|null resolveOutput(DataAttributesCollection $attributes, NameMapper|null $default = null)

Resolve the output mapper declared by the attributes.

Parameters

DataAttributesCollection $attributes
NameMapper|null $default

Return Value

NameMapper|null

at line 67
NameMapper|null resolveConfigured(string|null $mapper)

Resolve a configured mapper class.

Parameters

string|null $mapper

Return Value

NameMapper|null

at line 75
protected NameMapper resolve(string|int|NameMapper $mapper)

Resolve one mapper declaration.

Parameters

string|int|NameMapper $mapper

Return Value

NameMapper