class Asset extends BaseTaggedMapper

Asset class.

This class is responsible for converting raw API data into a PHP object of class Contentful\Delivery\Resource\Asset.

Properties

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

Methods

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

BaseMapper constructor.

createSystemProperties(string $class, array $data)

No description

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

No description

createTags(array $data)

No description

map($resource, array $data)

{@inheritdoc}

buildFile(array $data)

Creates a File or a subclass thereof.

Details

in BaseMapper at line 50
__construct(ResourceBuilderInterface $builder, ClientInterface $client, ParserInterface $richTextParser)

BaseMapper constructor.

Parameters

ResourceBuilderInterface $builder
ClientInterface $client
ParserInterface $richTextParser

in BaseMapper at line 58
protected createSystemProperties(string $class, array $data)

Parameters

string $class
array $data

in BaseMapper at line 82
protected array normalizeFieldData($fieldData, string $locale = null)

Parameters

$fieldData
string $locale

Return Value

array

in BaseTaggedMapper at line 23
protected createTags(array $data)

Parameters

array $data

at line 34
map($resource, array $data)

{@inheritdoc}

Parameters

$resource
array $data

at line 65
protected buildFile(array $data)

Creates a File or a subclass thereof.

Parameters

array $data