AbstractDataSource
in package
AbstractYes
Abstract implementation of a data source which allows to retrieve `AbstractTemplate` instances from remote. This should actually not implement any caching mechanism as this is done through `AbstractStore`!
Table of Contents
Properties
Methods
- __construct() : mixed
- C'tor.
- clearData() : mixed
- Clear all available data.
- getConsumer() : mixed
- Getter.
- getData() : mixed
- Getter.
- retrieve() : array<string|int, AbstractTemplate>
- Retrieve all templates from data source (e.g. request to service cloud).
- setData() : mixed
- Set data which could be reused by middlewares.
Properties
$consumer
private
mixed
$consumer
$data
private
mixed
$data
Methods
__construct()
C'tor.
public
__construct(ServiceCloudConsumer $consumer) : mixed
Parameters
- $consumer : ServiceCloudConsumer
clearData()
Clear all available data.
public
clearData() : mixed
Tags
getConsumer()
Getter.
public
getConsumer() : mixed
Tags
getData()
Getter.
public
getData(string $key) : mixed
Parameters
- $key : string
Tags
retrieve()
Retrieve all templates from data source (e.g. request to service cloud).
public
abstract retrieve() : array<string|int, AbstractTemplate>
Return values
array<string|int, AbstractTemplate>setData()
Set data which could be reused by middlewares.
public
setData(string $key, mixed $value) : mixed
Parameters
- $key : string
- $value : mixed