1 | <?php |
||
15 | class DeferredFactory |
||
16 | { |
||
17 | /** |
||
18 | * @var PromiseFactoryInterface |
||
19 | */ |
||
20 | private $promiseFactory; |
||
21 | |||
22 | public function __construct(PromiseFactoryInterface $promiseFactory) |
||
26 | |||
27 | /** |
||
28 | * @param PromiseFactoryInterface $promiseFactory |
||
29 | */ |
||
30 | private function setPromiseFactory(PromiseFactoryInterface $promiseFactory) |
||
34 | |||
35 | /** |
||
36 | * @return PromiseFactoryInterface |
||
37 | */ |
||
38 | public function getPromiseFactory() |
||
42 | |||
43 | /** |
||
44 | * @param callable|null $canceller |
||
45 | * |
||
46 | * @return DeferredAdapter |
||
47 | */ |
||
48 | public function create(callable $canceller = null) |
||
57 | } |
||
58 |