Kraken\Channel\Record\RequestRecord::__construct PHP Method

__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
    public function __construct($pid, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0)
    {
        $this->pid = $pid;
        $this->success = $success !== null ? $success : function () {
        };
        $this->failure = $failure !== null ? $failure : function () {
        };
        $this->cancel = $cancel !== null ? $cancel : function () {
        };
        $this->timeout = $timeout;
    }