PHP Class Kraken\Channel\Extra\Request

Datei anzeigen Open project: kraken-php/framework Class Usage Examples

Protected Properties

Property Type Description
$channel Kraken\Channel\ChannelInterface
$counter integer
$message Kraken\Channel\Protocol\ProtocolInterface | string
$name string
$params float

Public Methods

Method Description
__construct ( Kraken\Channel\ChannelInterface $channel, string $name, string | Kraken\Channel\Protocol\ProtocolInterface $message, mixed[] $params = [] )
__destruct ( )
__invoke ( ) : Kraken\Promise\PromiseInterface Send the prepared request.
call ( ) : Kraken\Promise\PromiseInterface Send the prepared request.

Protected Methods

Method Description
retryOrReset ( Kraken\Promise\PromiseInterface $promise, Erro\Error | Exceptio\Exception | ThrowableProxy $ex )
send ( Kraken\Promise\PromiseInterface $promise ) : Kraken\Promise\PromiseInterface Send the request using passed Promise.

Private Methods

Method Description
retry ( Kraken\Promise\PromiseInterface $promise )

Method Details

__construct() public method

public __construct ( Kraken\Channel\ChannelInterface $channel, string $name, string | Kraken\Channel\Protocol\ProtocolInterface $message, mixed[] $params = [] )
$channel Kraken\Channel\ChannelInterface
$name string
$message string | Kraken\Channel\Protocol\ProtocolInterface
$params mixed[]

__destruct() public method

public __destruct ( )

__invoke() public method

Send the prepared request.
public __invoke ( ) : Kraken\Promise\PromiseInterface
return Kraken\Promise\PromiseInterface

call() public method

Send the prepared request.
public call ( ) : Kraken\Promise\PromiseInterface
return Kraken\Promise\PromiseInterface

retryOrReset() protected method

protected retryOrReset ( Kraken\Promise\PromiseInterface $promise, Erro\Error | Exceptio\Exception | ThrowableProxy $ex )
$promise Kraken\Promise\PromiseInterface
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy

send() protected method

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

Property Details

$channel protected_oe property

protected ChannelInterface,Kraken\Channel $channel
return Kraken\Channel\ChannelInterface

$counter protected_oe property

protected int $counter
return integer

$message protected_oe property

protected ProtocolInterface,Kraken\Channel\Protocol|string $message
return Kraken\Channel\Protocol\ProtocolInterface | string

$name protected_oe property

protected string $name
return string

$params protected_oe property

protected float $params
return float