PHP Класс Asvae\ApiTester\Repositories\RequestRepository

Наследование: implements Asvae\ApiTester\Contracts\RequestRepositoryInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$requests
$storage

Открытые методы

Метод Описание
__construct ( Asvae\ApiTester\Contracts\StorageInterface $storage ) RequestRepository constructor.
all ( ) : mixed
exists ( integer $id ) : boolean
find ( integer $id ) : RequestEntity
flush ( ) : void
persist ( RequestEntity $request ) : mixed
remove ( string $id )

Защищенные методы

Метод Описание
getDataFromStorage ( ) : mixed Get all stored data storage.
load ( ) : void Get data from storage and load it into collection.
reload ( ) Replace existing collection with data loaded from storage.

Описание методов

__construct() публичный метод

RequestRepository constructor.
public __construct ( Asvae\ApiTester\Contracts\StorageInterface $storage )
$storage Asvae\ApiTester\Contracts\StorageInterface

all() публичный метод

public all ( ) : mixed
Результат mixed

exists() публичный метод

public exists ( integer $id ) : boolean
$id integer
Результат boolean

find() публичный метод

public find ( integer $id ) : RequestEntity
$id integer
Результат Asvae\ApiTester\Entities\RequestEntity

flush() публичный метод

public flush ( ) : void
Результат void

getDataFromStorage() защищенный метод

Get all stored data storage.
protected getDataFromStorage ( ) : mixed
Результат mixed

load() защищенный метод

Get data from storage and load it into collection.
protected load ( ) : void
Результат void

persist() публичный метод

public persist ( RequestEntity $request ) : mixed
$request Asvae\ApiTester\Entities\RequestEntity
Результат mixed

reload() защищенный метод

Replace existing collection with data loaded from storage.
protected reload ( )

remove() публичный метод

public remove ( string $id )
$id string

Описание свойств

$requests защищенное свойство

protected $requests

$storage защищенное свойство

protected $storage