DataDisplayResponse
extends Response
in package
Class DataDisplayResponse
Tags
Table of Contents
Properties
- $data : string
- response data
Methods
- __construct() : mixed
- getData() : string
- Used to get the set parameters
- render() : string
- Outputs data. No processing is done.
- setData() : DataDisplayResponse
- Sets values in the data
Properties
$data
response data
protected
string
$data
Methods
__construct()
public
__construct([string $data = '' ][, S $statusCode = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
- $data : string = ''
-
the data to display
- $statusCode : S = Http::STATUS_OK
-
the Http status code, defaults to 200
- $headers : H = []
-
additional key value based headers
Tags
getData()
Used to get the set parameters
public
getData() : string
Tags
Return values
string —the data
render()
Outputs data. No processing is done.
public
render() : string
Tags
Return values
stringsetData()
Sets values in the data
public
setData(string $data) : DataDisplayResponse
Parameters
- $data : string
-
the data to display
Tags
Return values
DataDisplayResponse —Reference to this object