PHP 클래스 Asvae\ApiTester\Storages\JsonStorage

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

보호된 프로퍼티들

프로퍼티 타입 설명
$collection Asvae\ApiTester\Collections\RequestCollection
$filename
$files
$path

공개 메소드들

메소드 설명
__construct ( Illuminate\Filesystem\Filesystem $files, RequestCollection $collection, $path ) Storage constructor.
get ( ) : RequestCollection Return array parsed from file content.
getFilePath ( ) : string Return full file path.
getFilename ( ) : string
getPath ( ) : string Return path to folder that can contain file.
put ( RequestCollection $data ) : void

보호된 메소드들

메소드 설명
createDirectoryIfNotExists ( ) Make directory path if not exists
parseResult ( $content ) : array Parse result form given string

비공개 메소드들

메소드 설명
convertToJson ( $data ) : null | string
makeCollection ( array $data = [] ) : RequestCollection
prepareContent ( Traversable | array $data ) : string Prepare content string from given data

메소드 상세

__construct() 공개 메소드

Storage constructor.
public __construct ( Illuminate\Filesystem\Filesystem $files, RequestCollection $collection, $path )
$files Illuminate\Filesystem\Filesystem
$collection Asvae\ApiTester\Collections\RequestCollection
$path

createDirectoryIfNotExists() 보호된 메소드

Make directory path if not exists

get() 공개 메소드

Return array parsed from file content.
public get ( ) : RequestCollection
리턴 Asvae\ApiTester\Collections\RequestCollection

getFilePath() 공개 메소드

Return full file path.
public getFilePath ( ) : string
리턴 string

getFilename() 공개 메소드

public getFilename ( ) : string
리턴 string

getPath() 공개 메소드

Return path to folder that can contain file.
public getPath ( ) : string
리턴 string

parseResult() 보호된 메소드

Parse result form given string
protected parseResult ( $content ) : array
$content
리턴 array

put() 공개 메소드

public put ( RequestCollection $data ) : void
$data Asvae\ApiTester\Collections\RequestCollection
리턴 void

프로퍼티 상세

$collection 보호되어 있는 프로퍼티

protected RequestCollection,Asvae\ApiTester\Collections $collection
리턴 Asvae\ApiTester\Collections\RequestCollection

$filename 보호되어 있는 프로퍼티

protected $filename

$files 보호되어 있는 프로퍼티

protected $files

$path 보호되어 있는 프로퍼티

protected $path