class ResourceBuilder

The ResourceBuilder is responsible for turning the responses from the API into instances of PHP classes.

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

Methods

__construct(Client $client, InstanceCache $instanceCache, string $spaceId)

ResourceBuilder constructor.

buildObjectsFromRawData(object $data)

Build objects based on PHP classes from the raw JSON based objects.

Details

at line 46
__construct(Client $client, InstanceCache $instanceCache, string $spaceId)

ResourceBuilder constructor.

Parameters

Client $client
InstanceCache $instanceCache
string $spaceId

at line 60
Asset|ContentType|DynamicEntry|Space|DeletedAsset|DeletedEntry|ResourceArray buildObjectsFromRawData(object $data)

Build objects based on PHP classes from the raw JSON based objects.