| 1 | <?php |
||
| 6 | class Response extends BaseResponse |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * if content is an array, then convert to json |
||
| 10 | * @param mixed $content |
||
| 11 | * @return BaseResponse |
||
| 12 | */ |
||
| 13 | public function setContent($content) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param mixed $content The response content, see setContent() |
||
| 25 | * @param int $status The response status code |
||
| 26 | * @param array $headers An array of response headers |
||
| 27 | * |
||
| 28 | * @return Response |
||
| 29 | */ |
||
| 30 | public static function create($content = '', $status = 200, $headers = array()) |
||
| 34 | } |
||
| 35 |