TextPlainResponse
extends Response
in package
A renderer for text responses
Tags
Table of Contents
Properties
- $text : string
Methods
- __construct() : mixed
- constructor of TextPlainResponse
- render() : string
- Returns the text
Properties
$text
private
string
$text
= ''
Methods
__construct()
constructor of TextPlainResponse
public
__construct([string $text = '' ][, S $statusCode = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
- $text : string = ''
-
The text body
- $statusCode : S = Http::STATUS_OK
-
the Http status code, defaults to 200
- $headers : H = []
Tags
render()
Returns the text
public
render() : string