|
file-fetcher
|
Public Member Functions | |
| retrieve (string $id) | |
| retrieveAll () | |
| store ($data, string $id=null) | |
| remove (string $id) | |
Protected Attributes | |
| $storage = [] | |
| Contracts\Mock\Storage\Memory::remove | ( | string | $id | ) |
| Contracts\Mock\Storage\Memory::retrieve | ( | string | $id | ) |
Retrieve.
| string | $id | The identifier for the data. |
Implements Contracts\RetrieverInterface.
| Contracts\Mock\Storage\Memory::retrieveAll | ( | ) |
Retrieve all.
Implements Contracts\BulkRetrieverInterface.
Reimplemented in Contracts\Mock\Storage\JsonObjectMemory.
| Contracts\Mock\Storage\Memory::store | ( | $data, | |
| string | $id = null |
||
| ) |
Store.
| string | HydratableInterface | $data | The data to be stored. |
| string | $id | The identifier for the data. If the act of storing generates the id, there is no need to pass one. |
Implements Contracts\StorerInterface.
Reimplemented in Contracts\Mock\Storage\JsonObjectMemory.
|
protected |
1.8.17