| 1 | <?php declare(strict_types=1); |
||
| 10 | abstract class AbstractResource implements ResourceInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var LoopInterface |
||
| 14 | */ |
||
| 15 | private $loop; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var CommandBus |
||
| 19 | */ |
||
| 20 | private $commandBus; |
||
| 21 | |||
| 22 | 4 | public function __construct(LoopInterface $loop, CommandBus $commandBus) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return CommandBus |
||
| 30 | */ |
||
| 31 | protected function getCommandBus() |
||
| 35 | |||
| 36 | 1 | protected function wait(PromiseInterface $promise) |
|
| 40 | } |
||
| 41 |