PHP Класс Kraken\Channel\Extra\Response

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

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

Свойство Тип Описание
$channel Kraken\Channel\ChannelInterface
$message string | string[] | Erro\Error | Exceptio\Exception
$params mixed[]
$protocol Kraken\Channel\Protocol\ProtocolInterface

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

Метод Описание
__construct ( Kraken\Channel\ChannelInterface $channel, Kraken\Channel\Protocol\ProtocolInterface $protocol, string | string[] | Erro\Error | Exceptio\Exception $message, mixed[] $params = [] )
__destruct ( )
__invoke ( ) : Kraken\Promise\PromiseInterface Send the prepared response.
call ( ) : Kraken\Promise\PromiseInterface Send the prepared response.

Защищенные методы

Метод Описание
send ( Kraken\Promise\PromiseInterface $promise ) : Kraken\Promise\PromiseInterface Send the request using passed Promise.

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

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

public __construct ( Kraken\Channel\ChannelInterface $channel, Kraken\Channel\Protocol\ProtocolInterface $protocol, string | string[] | Erro\Error | Exceptio\Exception $message, mixed[] $params = [] )
$channel Kraken\Channel\ChannelInterface
$protocol Kraken\Channel\Protocol\ProtocolInterface
$message string | string[] | Erro\Error | Exceptio\Exception
$params mixed[]

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

public __destruct ( )

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

Send the prepared response.
public __invoke ( ) : Kraken\Promise\PromiseInterface
Результат Kraken\Promise\PromiseInterface

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

Send the prepared response.
public call ( ) : Kraken\Promise\PromiseInterface
Результат Kraken\Promise\PromiseInterface

send() защищенный Метод

Send the request using passed Promise.
protected send ( Kraken\Promise\PromiseInterface $promise ) : Kraken\Promise\PromiseInterface
$promise Kraken\Promise\PromiseInterface
Результат Kraken\Promise\PromiseInterface

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

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

protected ChannelInterface,Kraken\Channel $channel
Результат Kraken\Channel\ChannelInterface

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

protected string|string[]|Error,Erro|Exception,Exceptio $message
Результат string | string[] | Erro\Error | Exceptio\Exception

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

protected mixed[] $params
Результат mixed[]

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

protected ProtocolInterface,Kraken\Channel\Protocol $protocol
Результат Kraken\Channel\Protocol\ProtocolInterface