PHP Class Kraken\Channel\Extra\Response

Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Protected Properties

Свойство Type Description
$channel Kraken\Channel\ChannelInterface
$message string | string[] | Erro\Error | Exceptio\Exception
$params mixed[]
$protocol Kraken\Channel\Protocol\ProtocolInterface

Méthodes publiques

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

Méthodes protégées

Méthode Description
send ( Kraken\Promise\PromiseInterface $promise ) : Kraken\Promise\PromiseInterface Send the request using passed Promise.

Method Details

__construct() public méthode

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 méthode

public __destruct ( )

__invoke() public méthode

Send the prepared response.
public __invoke ( ) : Kraken\Promise\PromiseInterface
Résultat Kraken\Promise\PromiseInterface

call() public méthode

Send the prepared response.
public call ( ) : Kraken\Promise\PromiseInterface
Résultat Kraken\Promise\PromiseInterface

send() protected méthode

Send the request using passed Promise.
protected send ( Kraken\Promise\PromiseInterface $promise ) : Kraken\Promise\PromiseInterface
$promise Kraken\Promise\PromiseInterface
Résultat Kraken\Promise\PromiseInterface

Property Details

$channel protected_oe property

protected ChannelInterface,Kraken\Channel $channel
Résultat Kraken\Channel\ChannelInterface

$message protected_oe property

protected string|string[]|Error,Erro|Exception,Exceptio $message
Résultat string | string[] | Erro\Error | Exceptio\Exception

$params protected_oe property

protected mixed[] $params
Résultat mixed[]

$protocol protected_oe property

protected ProtocolInterface,Kraken\Channel\Protocol $protocol
Résultat Kraken\Channel\Protocol\ProtocolInterface