trait SpaceMembershipExtension

SpaceMembershipExtension trait.

This extension is supposed to be applied to Client class which provides a fetchResource method.

Methods

getSpaceMembership(string $spaceId, string $spaceMembershipId)

Returns a SpaceMembership resource.

getSpaceMemberships(string $spaceId, Query $query = null)

Returns a ResourceArray object containing SpaceMembership resources.

ResourceInterface|ResourceArray
fetchResource(string $class, array $parameters, Query $query = null, ResourceInterface $resource = null)

No description

Details

at line 33
getSpaceMembership(string $spaceId, string $spaceMembershipId)

Returns a SpaceMembership resource.

Parameters

string $spaceId
string $spaceMembershipId

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/space-memberships/space-membership

at line 46
getSpaceMemberships(string $spaceId, Query $query = null)

Returns a ResourceArray object containing SpaceMembership resources.

Parameters

string $spaceId
Query $query

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/space-memberships

at line 26
ResourceInterface|ResourceArray fetchResource(string $class, array $parameters, Query $query = null, ResourceInterface $resource = null)

Parameters

string $class
array $parameters
Query $query
ResourceInterface $resource

Return Value

ResourceInterface|ResourceArray