class Role extends BaseMapper

Role class.

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

Properties

protected ResourceBuilder $builder from BaseMapper
protected ObjectHydrator $hydrator from BaseMapper

Methods

__construct(ResourceBuilder $builder)

BaseMapper constructor.

map($resource, array $data)

{@inheritdoc}

mapPolicy(array $data)

No description

mapConstraint(array $data)

No description

mapPermissions(array $data)

No description

string|null
convertPermission(string|string[] $permission)

No description

Details

in BaseMapper at line 36
__construct(ResourceBuilder $builder)

BaseMapper constructor.

Parameters

ResourceBuilder $builder

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

{@inheritdoc}

Parameters

$resource
array $data

at line 50
protected mapPolicy(array $data)

Parameters

array $data

at line 59
protected mapConstraint(array $data)

Parameters

array $data

at line 106
protected mapPermissions(array $data)

Parameters

array $data

at line 123
protected string|null convertPermission(string|string[] $permission)

Parameters

string|string[] $permission

Return Value

string|null