| 1 | <?php |
||
| 19 | class Response |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $statusCode; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $content; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Constructor. |
||
| 33 | * |
||
| 34 | * @param int $statusCode |
||
| 35 | * @param string $content |
||
| 36 | */ |
||
| 37 | public function __construct(int $statusCode, string $content) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get status code |
||
| 45 | * |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | public function getStatusCode(): int |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get content |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getContent(): string |
||
| 62 | } |
||
| 63 |