PHP Class VCR\Storage\Json

This storage can be iterated while keeping the memory consumption to the amount of memory used by the largest record.
Inheritance: extends AbstractStorage
Mostrar archivo Open project: php-vcr/php-vcr

Public Methods

Method Description
next ( ) : void Parses the next record.
rewind ( ) : void Resets the storage to the beginning.
storeRecording ( array $recording )
valid ( ) : boolean Returns true if the current record is valid.

Protected Methods

Method Description
readNextRecord ( ) : string Returns the next record in raw format.

Method Details

next() public method

Parses the next record.
public next ( ) : void
return void

readNextRecord() protected method

Returns the next record in raw format.
protected readNextRecord ( ) : string
return string Next record in raw format.

rewind() public method

Resets the storage to the beginning.
public rewind ( ) : void
return void

storeRecording() public method

public storeRecording ( array $recording )
$recording array

valid() public method

Returns true if the current record is valid.
public valid ( ) : boolean
return boolean True if the current record is valid.