Documentation

LocalDataSource extends AbstractDataSource
in package

Retrieve templates directly from a configured JSON or `AbstractTemplate` instances.

Table of Contents

Properties

$consumer  : mixed
$createdDefaults  : mixed
$data  : mixed
$templates  : array<string|int, AbstractTemplate>
Templates.

Methods

__construct()  : mixed
C'tor.
add()  : mixed
Add template to this data source.
clearData()  : mixed
Clear all available data.
createDefaults()  : mixed
Overwrite this function which adds defaults to the local data source.
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

Methods

clearData()

Clear all available data.

public clearData() : mixed
Tags
codeCoverageIgnore

createDefaults()

Overwrite this function which adds defaults to the local data source.

public createDefaults() : mixed

getData()

Getter.

public getData(string $key) : mixed
Parameters
$key : string
Tags
codeCoverageIgnore

setData()

Set data which could be reused by middlewares.

public setData(string $key, mixed $value) : mixed
Parameters
$key : string
$value : mixed
Tags
codeCoverageIgnore

        
On this page

Search results