\Orpheus\InputControllerOutputResponse

The OutputResponse class

Summary

Methods
Properties
Constants
setControllerOutput()
getControllerOutput()
__toString()
generateFromException()
generateFromUserException()
No public properties found
No constants found
No protected methods found
$controllerOutput
N/A
No private methods found
No private properties found
N/A

Properties

$controllerOutput

$controllerOutput : string

The output of the controller when running it

Type

string

Methods

setControllerOutput()

setControllerOutput(string  $controllerOutput) 

Set the controller output

Parameters

string $controllerOutput

getControllerOutput()

getControllerOutput() : string

Get the controller output

Returns

string

__toString()

__toString() : string

Get this response as string

Returns

string

generateFromException()

generateFromException(\Orpheus\InputController\Exception  $exception, string  $action = null) : \Orpheus\InputController\OutputResponse

Generate OutputResponse from Exception

Parameters

\Orpheus\InputController\Exception $exception
string $action

Returns

\Orpheus\InputController\OutputResponse