PHP Класс Ikwattro\GuzzleStereo\Recorder

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config null | array
$formatter Ikwattro\GuzzleStereo\Formatter\ResponseFormatter
$mixer
$storeDirectory string
$tapes Ikwattro\GuzzleStereo\Record\Tape[]
$writer Ikwattro\GuzzleStereo\Store\Writer

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
processConfig ( ) Process configuration for registering tapes and filters.

Описание методов

__construct() публичный Метод

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

addTape() публичный Метод

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

dump() публичный Метод

Dumps the tapes on disk.
public dump ( )

getConfig() публичный Метод

public getConfig ( ) : null | array
Результат null | array

getResponseFormatter() публичный Метод

public getResponseFormatter ( ) : ResponseFormatter
Результат Ikwattro\GuzzleStereo\Formatter\ResponseFormatter

getStore() публичный Метод

public getStore ( ) : null | string
Результат null | string

getTape() публичный Метод

public getTape ( string $name ) : Ikwattro\GuzzleStereo\Record\Tape
$name string
Результат Ikwattro\GuzzleStereo\Record\Tape

getTapeContent() публичный Метод

Returns the content of a specific tape without writing it to disk.
public getTapeContent ( string $name ) : null | string
$name string
Результат null | string

getTapes() публичный Метод

public getTapes ( ) : Ikwattro\GuzzleStereo\Record\Tape[]
Результат Ikwattro\GuzzleStereo\Record\Tape[]

getWriter() публичный Метод

public getWriter ( ) : Writer
Результат Ikwattro\GuzzleStereo\Store\Writer

loadConfig() публичный Метод

public loadConfig ( string $configurationFile )
$configurationFile string

record() публичный Метод

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

Описание свойств

$config защищенное свойство

protected null|array $config
Результат null | array

$formatter защищенное свойство

protected ResponseFormatter,Ikwattro\GuzzleStereo\Formatter $formatter
Результат Ikwattro\GuzzleStereo\Formatter\ResponseFormatter

$mixer защищенное свойство

protected $mixer

$storeDirectory защищенное свойство

protected string $storeDirectory
Результат string

$tapes защищенное свойство

protected Tape[],Ikwattro\GuzzleStereo\Record $tapes
Результат Ikwattro\GuzzleStereo\Record\Tape[]

$writer защищенное свойство

protected Writer,Ikwattro\GuzzleStereo\Store $writer
Результат Ikwattro\GuzzleStereo\Store\Writer