1 | <?php |
||
7 | class ApiResponse implements ApiResponseInterface |
||
8 | { |
||
9 | /** @var ResponseInterface $response */ |
||
10 | protected $response; |
||
11 | |||
12 | /** |
||
13 | * ApiResponse constructor. |
||
14 | * |
||
15 | * @param ResponseInterface $response |
||
16 | */ |
||
17 | 6 | public function __construct(ResponseInterface $response) |
|
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | 1 | public function getStatusCode() |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 1 | public function getHeaders() |
|
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 1 | public function getHeader($headerName) |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 1 | public function getBody() |
|
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 1 | public function isRedirect() |
|
65 | } |
||
66 |