| 1 | <?php |
||
| 16 | trait MakesPromisesTrait |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var PromiseFactoryInterface |
||
| 20 | */ |
||
| 21 | private $promiseFactory; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param callable $resolver |
||
| 25 | * @param callable|null $canceller |
||
| 26 | * |
||
| 27 | * @return PromiseInterface |
||
| 28 | */ |
||
| 29 | protected function createPromise(callable $resolver, callable $canceller = null) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param PromiseFactoryInterface $promiseFactory |
||
| 36 | */ |
||
| 37 | public function setPromiseFactory($promiseFactory) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return PromiseFactoryInterface |
||
| 44 | */ |
||
| 45 | public function getPromiseFactory() |
||
| 53 | } |
||
| 54 |