Constructor.
Parameters
-
$datamixed optional -
Response data.
Default:
null -
$statusint optional -
HTTP status code.
Default:
200 -
$headersarray optional -
HTTP header mapp.
Default:
array()
Source
public function __construct( $data = null, $status = 200, $headers = array() ) {
$this->set_data( $data );
$this->set_status( $status );
$this->set_headers( $headers );
}
Changuelog
| Versionen | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.