\Pop\ConsoleResponse

Console response class

Summary

Methods
Properties
Constants
__construct()
setBody()
append()
getBody()
reset()
send()
No public properties found
No constants found
No protected methods found
$body
N/A
No private methods found
No private properties found
N/A

Properties

$body

$body : string

Response body

Type

string

Methods

__construct()

__construct(string  $body = null) : \Pop\Console\Response

Instantiate a new console response object

Parameters

string $body

Returns

\Pop\Console\Response

setBody()

setBody(string  $body) : \Pop\Console\Response

Set the response body

Parameters

string $body

Returns

\Pop\Console\Response

append()

append(string  $text) : \Pop\Console\Response

Append text to the response body

Parameters

string $text

Returns

\Pop\Console\Response

getBody()

getBody() : string

Get the response body

Returns

string

send()

send() : \Pop\Console\Response

Send the response and reset the body

Returns

\Pop\Console\Response