file-fetcher
All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
Contracts\Mock\Storage\JsonObjectMemory Class Reference
Inheritance diagram for Contracts\Mock\Storage\JsonObjectMemory:
Contracts\Mock\Storage\Memory Contracts\SorterInterface Contracts\ConditionerInterface Contracts\OffsetterInterface Contracts\LimiterInterface Contracts\RetrieverInterface Contracts\StorerInterface Contracts\BulkRetrieverInterface

Public Member Functions

 retrieveAll ()
 
 store ($data, string $id=null)
 
 conditionByIsEqualTo (string $property, string $value)
 
 limitTo (int $number_of_items)
 
 offsetBy (int $offset)
 
 sortByAscending (string $property)
 
 sortByDescending (string $property)
 
- Public Member Functions inherited from Contracts\Mock\Storage\Memory
 retrieve (string $id)
 
 remove (string $id)
 

Additional Inherited Members

- Protected Attributes inherited from Contracts\Mock\Storage\Memory
 $storage = []
 

Member Function Documentation

◆ conditionByIsEqualTo()

Contracts\Mock\Storage\JsonObjectMemory::conditionByIsEqualTo ( string  $property,
string  $value 
)

◆ limitTo()

Contracts\Mock\Storage\JsonObjectMemory::limitTo ( int  $number_of_items)

◆ offsetBy()

Contracts\Mock\Storage\JsonObjectMemory::offsetBy ( int  $offset)

◆ retrieveAll()

Contracts\Mock\Storage\JsonObjectMemory::retrieveAll ( )

Retrieve all.

Returns
array An array of ids.

Reimplemented from Contracts\Mock\Storage\Memory.

◆ sortByAscending()

Contracts\Mock\Storage\JsonObjectMemory::sortByAscending ( string  $property)

◆ sortByDescending()

Contracts\Mock\Storage\JsonObjectMemory::sortByDescending ( string  $property)

◆ store()

Contracts\Mock\Storage\JsonObjectMemory::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

Reimplemented from Contracts\Mock\Storage\Memory.


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