class BaseMapper implements MapperInterface

BaseMapper class.

Properties

protected ResourceBuilderInterface $builder
protected ClientInterface $client
protected ParserInterface $richTextParser
protected ObjectHydrator $hydrator

Methods

__construct(ResourceBuilderInterface $builder, ClientInterface $client, ParserInterface $richTextParser)

BaseMapper constructor.

SystemPropertiesInterface
createSystemProperties(string $class, array $data)

No description

array
normalizeFieldData(mixed $fieldData, string $locale = \null)

No description

Details

at line 54
__construct(ResourceBuilderInterface $builder, ClientInterface $client, ParserInterface $richTextParser)

BaseMapper constructor.

Parameters

ResourceBuilderInterface $builder
ClientInterface $client
ParserInterface $richTextParser

at line 68
protected SystemPropertiesInterface createSystemProperties(string $class, array $data)

Parameters

string $class
array $data

Return Value

SystemPropertiesInterface

at line 93
protected array normalizeFieldData(mixed $fieldData, string $locale = \null)

Parameters

mixed $fieldData
string $locale

Return Value

array