Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | class GetRequest |
||
22 | { |
||
23 | /** |
||
24 | * @var HttpClient |
||
25 | */ |
||
26 | private $client; |
||
27 | /** |
||
28 | * @var RequestHeader |
||
29 | */ |
||
30 | private $requestHeader; |
||
31 | |||
32 | /** |
||
33 | * Request constructor. |
||
34 | * |
||
35 | * @param HttpClient $client |
||
36 | * @param RequestHeader $requestHeader |
||
37 | */ |
||
38 | 22 | public function __construct(HttpClient $client, RequestHeader $requestHeader) |
|
39 | { |
||
40 | 22 | $this->client = $client; |
|
41 | 22 | $this->requestHeader = $requestHeader; |
|
42 | 22 | } |
|
43 | |||
44 | /** |
||
45 | * @param RequestInterface $request |
||
46 | * @param RequestOptions $requestOptions |
||
47 | * |
||
48 | * @return ResponseInterface |
||
49 | */ |
||
50 | 1 | public function execute(RequestInterface $request, RequestOptions $requestOptions) |
|
56 | 1 | ]); |
|
57 | } |
||
59 |