1 | <?php |
||
17 | class DeferredFactory |
||
18 | { |
||
19 | /** |
||
20 | * @var PromiseFactoryInterface |
||
21 | */ |
||
22 | private $promiseFactory; |
||
23 | |||
24 | public function __construct(PromiseFactoryInterface $promiseFactory) |
||
28 | |||
29 | /** |
||
30 | * @param PromiseFactoryInterface $promiseFactory |
||
31 | */ |
||
32 | private function setPromiseFactory(PromiseFactoryInterface $promiseFactory) |
||
36 | |||
37 | /** |
||
38 | * @return PromiseFactoryInterface |
||
39 | */ |
||
40 | public function getPromiseFactory() |
||
44 | |||
45 | /** |
||
46 | * @param callable|null $canceller |
||
47 | * |
||
48 | * @return DeferredAdapter |
||
49 | */ |
||
50 | public function create(callable $canceller = null) |
||
59 | } |
||
60 |