ContentType
class ContentType extends BaseMapper
ContentType class.
This class is responsible for converting raw API data into a PHP object of class Contentful\Management\Resource\ContentType.
Properties
protected ResourceBuilder | $builder | from BaseMapper |
Methods
ResourceInterface|ResourceArray
hydrate(string|object $target, array $data)
No description
from BaseMapper
ResourceInterface|ResourceArray
buildContentTypeField(array $data)
No description
buildFieldValidation(array $data)
No description
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 28
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.