PHP Class Kraken\Channel\Record\RequestRecord

Datei anzeigen Open project: kraken-php/framework

Public Properties

Property Type Description
$cancel callable
$failure callable
$pid string
$success callable
$timeout float

Public Methods

Method Description
__construct ( string $pid, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout )
__destruct ( )
cancel ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed Cancel Request calling cancellation handler.
getPid ( ) : string Return protocol ID.
getTimeout ( ) : float Return timeout.
onCancel ( ) : callable Return cancellation handler.
onFailure ( ) : callable Return failure handler.
onSuccess ( ) : callable Return success handler.
reject ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed Reject Request calling failure handler.
resolve ( mixed $value ) : mixed Resolve Request calling success handler.

Method Details

__construct() public method

public __construct ( string $pid, callable $success = null, callable $failure = null, callable $cancel = null, float $timeout )
$pid string
$success callable
$failure callable
$cancel callable
$timeout float

__destruct() public method

public __destruct ( )

cancel() public method

Cancel Request calling cancellation handler.
public cancel ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy
return mixed

getPid() public method

Return protocol ID.
public getPid ( ) : string
return string

getTimeout() public method

Return timeout.
public getTimeout ( ) : float
return float

onCancel() public method

Return cancellation handler.
public onCancel ( ) : callable
return callable

onFailure() public method

Return failure handler.
public onFailure ( ) : callable
return callable

onSuccess() public method

Return success handler.
public onSuccess ( ) : callable
return callable

reject() public method

Reject Request calling failure handler.
public reject ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy
return mixed

resolve() public method

Resolve Request calling success handler.
public resolve ( mixed $value ) : mixed
$value mixed
return mixed

Property Details

$cancel public_oe property

public callable $cancel
return callable

$failure public_oe property

public callable $failure
return callable

$pid public_oe property

public string $pid
return string

$success public_oe property

public callable $success
return callable

$timeout public_oe property

public float $timeout
return float