class InstanceRepository

InstanceRepository class.

This class acts as a registry for current objects managed by the Client. It also abstracts access to objects stored in cache.

Methods

__construct(Client $client, CacheItemPoolInterface $cacheItemPool, bool $autoWarmup, string $spaceId, string $environmentId)

No description

bool
has(string $type, string $resourceId)

No description

set(ResourceInterface $resource)

No description

ResourceInterface
get(string $type, string $resourceId)

No description

string
generateCacheKey(string $api, string $type, string $resourceId)

No description

Details

at line 90
__construct(Client $client, CacheItemPoolInterface $cacheItemPool, bool $autoWarmup, string $spaceId, string $environmentId)

Parameters

Client $client
CacheItemPoolInterface $cacheItemPool
bool $autoWarmup
string $spaceId
string $environmentId

at line 132
bool has(string $type, string $resourceId)

Parameters

string $type
string $resourceId

Return Value

bool

at line 142
set(ResourceInterface $resource)

Parameters

ResourceInterface $resource

at line 174
ResourceInterface get(string $type, string $resourceId)

Parameters

string $type
string $resourceId

Return Value

ResourceInterface

at line 188
string generateCacheKey(string $api, string $type, string $resourceId)

Parameters

string $api
string $type
string $resourceId

Return Value

string