1 | <?php declare(strict_types=1); |
||
7 | final class Response |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $body; |
||
13 | |||
14 | /** |
||
15 | * @var ResponseInterface |
||
16 | */ |
||
17 | private $response; |
||
18 | |||
19 | /** |
||
20 | * Response constructor. |
||
21 | * @param string $body |
||
22 | * @param ResponseInterface $response |
||
23 | */ |
||
24 | public function __construct($body, ResponseInterface $response) |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getBody(): string |
||
37 | |||
38 | /** |
||
39 | * @return ResponseInterface |
||
40 | */ |
||
41 | public function getResponse(): ResponseInterface |
||
45 | } |
||
46 |