| 1 | <?php |
||
| 13 | class AjaxResponse extends Response |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * _statusCode |
||
| 18 | * |
||
| 19 | * Unless explicitly set, default to a 200 status |
||
| 20 | * assuming everything went ok. |
||
| 21 | */ |
||
| 22 | protected $_statusCode = 200; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * _errors |
||
| 26 | * |
||
| 27 | * |
||
| 28 | */ |
||
| 29 | protected $_errors = false; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Theme |
||
| 33 | */ |
||
| 34 | protected $_theme; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Content |
||
| 38 | */ |
||
| 39 | protected $_content = null; |
||
| 40 | |||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * setStatusCode |
||
| 45 | * |
||
| 46 | * Set, and send, the HTTP status code. |
||
| 47 | */ |
||
| 48 | public function setStatusCode($code = null) |
||
| 55 | |||
| 56 | public function setErrors($errors = null) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Ajax render function |
||
| 69 | * |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | public function render() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Render and send data to browser then end request |
||
| 85 | * |
||
| 86 | * @note This should only be called at the very end of processing the response |
||
| 87 | */ |
||
| 88 | public function send() |
||
| 95 | } |
||
| 96 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..