file-fetcher
Public Member Functions | List of all members
Contracts\StorerInterface Interface Reference
Inheritance diagram for Contracts\StorerInterface:
Contracts\Mock\Storage\Memory Contracts\Mock\Storage\JsonObjectMemory

Public Member Functions

 store ($data, string $id=null)
 

Member Function Documentation

◆ store()

Contracts\StorerInterface::store (   $data,
string  $id = null 
)

Store.

Parameters
string | HydratableInterface$dataThe data to be stored.
string$idThe identifier for the data. If the act of storing generates the id, there is no need to pass one.
Returns
string The identifier.
Exceptions

Implemented in Contracts\Mock\Storage\JsonObjectMemory, and Contracts\Mock\Storage\Memory.


The documentation for this interface was generated from the following file: