1 | <?php |
||
5 | class Response |
||
6 | { |
||
7 | /** |
||
8 | * HTTP Status code |
||
9 | * |
||
10 | * @int |
||
11 | */ |
||
12 | protected $status; |
||
13 | |||
14 | /** |
||
15 | * Contents. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $body; |
||
20 | |||
21 | /** |
||
22 | * Assign dependencies. |
||
23 | * |
||
24 | * @param int $status |
||
25 | * @param array $headers |
||
26 | * @param string $body |
||
27 | */ |
||
28 | 12 | public function __construct($status = 200, array $headers = [], $body = null) |
|
33 | |||
34 | /** |
||
35 | * Get body. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | 8 | public function getBody() |
|
43 | |||
44 | /** |
||
45 | * Get HTTP status code. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | 2 | public function getStatus() |
|
53 | } |
||
54 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.