File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 66use Interop \Container \ContainerInterface ;
77use React \Promise \CancellablePromiseInterface ;
88
9- final class Client
9+ final class Client implements ClientInterface
1010{
1111 /**
1212 * @var ContainerInterface
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+
3+ namespace ApiClients \Foundation ;
4+
5+ use Interop \Container \ContainerInterface ;
6+ use React \Promise \CancellablePromiseInterface ;
7+
8+ interface ClientInterface
9+ {
10+ /**
11+ * @return ContainerInterface
12+ */
13+ public function getContainer (): ContainerInterface ;
14+
15+ /**
16+ * @return mixed
17+ */
18+ public function getFromContainer (string $ id );
19+
20+ /**
21+ * @param $command
22+ * @return CancellablePromiseInterface
23+ */
24+ public function handle ($ command ): CancellablePromiseInterface ;
25+ }
You can’t perform that action at this time.
0 commit comments