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
Afficher le fichier Open project: php-vcr/php-vcr

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
readNextRecord ( ) : string Returns the next record in raw format.

Method Details

next() public méthode

Parses the next record.
public next ( ) : void
Résultat void

readNextRecord() protected méthode

Returns the next record in raw format.
protected readNextRecord ( ) : string
Résultat string Next record in raw format.

rewind() public méthode

Resets the storage to the beginning.
public rewind ( ) : void
Résultat void

storeRecording() public méthode

public storeRecording ( array $recording )
$recording array

valid() public méthode

Returns true if the current record is valid.
public valid ( ) : boolean
Résultat boolean True if the current record is valid.