| 1 | <?php |
||
| 10 | class ApiResponse |
||
| 11 | { |
||
| 12 | public $headers; |
||
| 13 | public $body; |
||
| 14 | public $json; |
||
| 15 | public $code; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $body |
||
| 19 | * @param integer $code |
||
| 20 | * @param array|null $headers |
||
| 21 | * @param array|null $json |
||
| 22 | * |
||
| 23 | * @return obj An APIResponse |
||
|
|
|||
| 24 | */ |
||
| 25 | public function __construct($body, $code, $headers, $json) |
||
| 32 | } |
||
| 33 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.