1 | <?php |
||
5 | class ApiResponse |
||
6 | { |
||
7 | /** @var HttpStatus */ |
||
8 | private $httpStatus; |
||
9 | |||
10 | /** @var ApiRate */ |
||
11 | private $rate; |
||
12 | |||
13 | /** @var mixed */ |
||
14 | private $content; |
||
15 | |||
16 | /** |
||
17 | * ApiResponse constructor. |
||
18 | * |
||
19 | * @param HttpStatus $httpStatus |
||
20 | * @param mixed $content |
||
21 | * @param ApiRate $rate |
||
22 | */ |
||
23 | 108 | public function __construct( |
|
32 | |||
33 | /** |
||
34 | * @return HttpStatus |
||
35 | */ |
||
36 | 15 | public function getHttpStatus() |
|
37 | { |
||
38 | 15 | return $this->httpStatus; |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return array|object|null |
||
43 | */ |
||
44 | 51 | public function getContent() |
|
48 | |||
49 | /** |
||
50 | * @return ApiRate |
||
51 | */ |
||
52 | 66 | public function getRate() |
|
56 | } |
||
57 |