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 |
Methods
ResourceInterface|ResourceArray
hydrate(string|object $target, array $data)
No description
from BaseMapper
ResourceInterface|ResourceArray
FileInterface
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.
in BaseMapper at line 47
protected ResourceInterface|ResourceArray
hydrate(string|object $target, array $data)
at line 32
ResourceInterface|ResourceArray
map(ResourceInterface|null $resource, array $data)
Maps the given data to a resource.
ATTENTION: This will directly modify the given resource. If $resource is "null", the method is expected to create a new instance of the appropriate class.
at line 51
protected FileInterface
buildFile(array $data)
Returns a PHP object representation of a file stored in Contentful.