PHP Class Ikwattro\GuzzleStereo\Recorder

Afficher le fichier Open project: ikwattro/guzzle-stereo Class Usage Examples

Protected Properties

Свойство Type Description
$config null | array
$formatter Ikwattro\GuzzleStereo\Formatter\ResponseFormatter
$mixer
$storeDirectory string
$tapes Ikwattro\GuzzleStereo\Record\Tape[]
$writer Ikwattro\GuzzleStereo\Store\Writer

Méthodes publiques

Méthode Description
__construct ( string $storeDirectory, null | string $configurationFile = null )
addTape ( Ikwattro\GuzzleStereo\Record\Tape $tape )
dump ( ) Dumps the tapes on disk.
getConfig ( ) : null | array
getResponseFormatter ( ) : ResponseFormatter
getStore ( ) : null | string
getTape ( string $name ) : Ikwattro\GuzzleStereo\Record\Tape
getTapeContent ( string $name ) : null | string Returns the content of a specific tape without writing it to disk.
getTapes ( ) : Ikwattro\GuzzleStereo\Record\Tape[]
getWriter ( ) : Writer
loadConfig ( string $configurationFile )
record ( Psr\Http\Message\ResponseInterface $response )

Private Methods

Méthode Description
processConfig ( ) Process configuration for registering tapes and filters.

Method Details

__construct() public méthode

public __construct ( string $storeDirectory, null | string $configurationFile = null )
$storeDirectory string
$configurationFile null | string

addTape() public méthode

public addTape ( Ikwattro\GuzzleStereo\Record\Tape $tape )
$tape Ikwattro\GuzzleStereo\Record\Tape

dump() public méthode

Dumps the tapes on disk.
public dump ( )

getConfig() public méthode

public getConfig ( ) : null | array
Résultat null | array

getResponseFormatter() public méthode

public getResponseFormatter ( ) : ResponseFormatter
Résultat Ikwattro\GuzzleStereo\Formatter\ResponseFormatter

getStore() public méthode

public getStore ( ) : null | string
Résultat null | string

getTape() public méthode

public getTape ( string $name ) : Ikwattro\GuzzleStereo\Record\Tape
$name string
Résultat Ikwattro\GuzzleStereo\Record\Tape

getTapeContent() public méthode

Returns the content of a specific tape without writing it to disk.
public getTapeContent ( string $name ) : null | string
$name string
Résultat null | string

getTapes() public méthode

public getTapes ( ) : Ikwattro\GuzzleStereo\Record\Tape[]
Résultat Ikwattro\GuzzleStereo\Record\Tape[]

getWriter() public méthode

public getWriter ( ) : Writer
Résultat Ikwattro\GuzzleStereo\Store\Writer

loadConfig() public méthode

public loadConfig ( string $configurationFile )
$configurationFile string

record() public méthode

public record ( Psr\Http\Message\ResponseInterface $response )
$response Psr\Http\Message\ResponseInterface

Property Details

$config protected_oe property

protected null|array $config
Résultat null | array

$formatter protected_oe property

protected ResponseFormatter,Ikwattro\GuzzleStereo\Formatter $formatter
Résultat Ikwattro\GuzzleStereo\Formatter\ResponseFormatter

$mixer protected_oe property

protected $mixer

$storeDirectory protected_oe property

protected string $storeDirectory
Résultat string

$tapes protected_oe property

protected Tape[],Ikwattro\GuzzleStereo\Record $tapes
Résultat Ikwattro\GuzzleStereo\Record\Tape[]

$writer protected_oe property

protected Writer,Ikwattro\GuzzleStereo\Store $writer
Résultat Ikwattro\GuzzleStereo\Store\Writer