1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Client\Adapter;
use Psr\Http\Message\ResponseInterface;
interface AdapterPromiseInterface extends ResponseInterface
{
/**
* @param callable $onFulfilled
* @param callable $onRejected
* @return AdapterPromiseInterface
*/
public function then(callable $onFulfilled = null, callable $onRejected = null);
/**
* @return mixed
*/
public function wait();
}