Asset
class Asset extends BaseMapper
Asset class.
This class is responsible for converting raw API data into a PHP object of class Contentful\Management\Resource\Asset.
Properties
protected ResourceBuilder | $builder | from BaseMapper | |
protected ObjectHydrator | $hydrator | from BaseMapper |
Methods
map($resource, array $data)
{@inheritdoc}
buildFile(array $data)
Returns a PHP object representation of a file stored in Contentful.
Details
in BaseMapper at line 36
__construct(ResourceBuilder $builder)
BaseMapper constructor.
at line 34
map($resource, array $data)
{@inheritdoc}
at line 54
protected
buildFile(array $data)
Returns a PHP object representation of a file stored in Contentful.