Skip to content
PHP Ecosystem
Explore

MapFrom

API reference › Model › Attribute › MapFrom

final readonly classUIAwesome\Model\Attribute\MapFrom
Sourcesrc/Attribute/MapFrom.php

Maps a model property from an explicit input key.

PropertyTypeDescriptionDefined by
$key readonlystringIdentifies the external input key mapped to this property.MapFrom
MethodDescriptionDefined by
__construct()Configures the external input key.MapFrom
public function __construct(string $key)

Configures the external input key.

Parameters

ParameterTypeDescription
$keystringNonempty input key.

Throws