File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55namespace SimpleAsFuck \ApiToolkit \Model \Client ;
66
77use GuzzleHttp \Promise \PromiseInterface ;
8- use Psr \Http \Message \ResponseInterface ;
98
109final class ResponsePromise
1110{
@@ -18,31 +17,4 @@ public function __construct(
1817 public readonly PromiseInterface $ promise ,
1918 ) {
2019 }
21-
22- /**
23- * @deprecated will be removed
24- * @return non-empty-string
25- */
26- public function apiName (): string
27- {
28- return $ this ->apiName ;
29- }
30-
31- /**
32- * @deprecated will be removed
33- */
34- public function request (): Request
35- {
36- return $ this ->request ;
37- }
38-
39- /**
40- * @deprecated will be removed
41- */
42- public function wait (): Response
43- {
44- /** @var ResponseInterface $response */
45- $ response = $ this ->promise ->wait ();
46- return new Response ($ this ->request , $ response );
47- }
4820}
You can’t perform that action at this time.
0 commit comments