1 | <?php |
||
19 | class ThenablePromisor implements PromisorInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var DeferredInterface |
||
23 | */ |
||
24 | protected $deferred = null; |
||
25 | |||
26 | /* |
||
27 | * @param ThenableInterface $thenable |
||
28 | */ |
||
29 | public function __construct(ThenableInterface $thenable) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function promise() |
||
47 | |||
48 | /** |
||
49 | * @return \Cubiche\Core\Async\Promise\DeferredInterface |
||
50 | */ |
||
51 | protected function deferred() |
||
59 | } |
||
60 |