class ResourceBuilder extends BaseResourceBuilder

ResourceBuilder class.

This class is responsible for turning responses from the API into instances of PHP classes.

A ResourceBuilder will only work for one space, when working with multiple spaces multiple instances have to be used.

Methods

__construct(ClientInterface $client, ResourcePoolInterface $resourcePool, ParserInterface $richTextParser)

ResourceBuilder constructor.

getMapperNamespace()

{@inheritdoc}

createMapper($fqcn)

{@inheritdoc}

getSystemType(array $data)

{@inheritdoc}

build(array $data, ResourceInterface $resource = null)

{@inheritdoc}

Details

at line 65
__construct(ClientInterface $client, ResourcePoolInterface $resourcePool, ParserInterface $richTextParser)

ResourceBuilder constructor.

Parameters

ClientInterface $client
ResourcePoolInterface $resourcePool
ParserInterface $richTextParser

at line 80
protected getMapperNamespace()

{@inheritdoc}

at line 88
protected createMapper($fqcn)

{@inheritdoc}

Parameters

$fqcn

at line 96
protected getSystemType(array $data)

{@inheritdoc}

Parameters

array $data

at line 112
build(array $data, ResourceInterface $resource = null)

{@inheritdoc}

Parameters

array $data
ResourceInterface $resource