PHP 클래스 Asvae\ApiTester\Repositories\RequestRepository

상속: implements Asvae\ApiTester\Contracts\RequestRepositoryInterface
파일 보기 프로젝트 열기: asvae/laravel-api-tester

보호된 프로퍼티들

프로퍼티 타입 설명
$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