SparkPost\SparkPostPromise::__construct PHP Method

__construct() public method

set the promise to be wrapped.
public __construct ( Http\Promise\Promise $promise )
$promise Http\Promise\Promise
    public function __construct(HttpPromise $promise)
    {
        $this->promise = $promise;
    }