| 1 | <?php declare(strict_types=1); |
||
| 12 | final class SharedAppClientService implements ServiceInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var LoopInterface |
||
| 16 | */ |
||
| 17 | private $loop; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $apps = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * SharedAppClientHandler constructor. |
||
| 26 | * @param LoopInterface $loop |
||
| 27 | */ |
||
| 28 | public function __construct(LoopInterface $loop) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string|null $appId |
||
| 35 | * @return CancellablePromiseInterface |
||
| 36 | */ |
||
| 37 | public function handle(string $appId = null): CancellablePromiseInterface |
||
| 46 | } |
||
| 47 |