OutputResponse
in package
AbstractYes
Table of Contents
Properties
- $controllerOutput : string|null
- The output of the controller when running it
Methods
- __toString() : string
- Get this response as string
- collectFrom() : void
- generateFromException() : static
- Generate OutputResponse from Exception
- generateFromUserException() : static
- Generate OutputResponse from UserException
- getControllerOutput() : string|null
- Get the controller output
- setControllerOutput() : void
- Set the controller output
Properties
$controllerOutput
The output of the controller when running it
protected
string|null
$controllerOutput
= null
Methods
__toString()
Get this response as string
public
__toString() : string
Return values
stringcollectFrom()
public
collectFrom(string $layout[, array<string|int, mixed> $values = [] ]) : void
Parameters
- $layout : string
- $values : array<string|int, mixed> = []
generateFromException()
Generate OutputResponse from Exception
public
static generateFromException(Throwable $exception[, array<string|int, mixed> $values = [] ]) : static
Parameters
- $exception : Throwable
- $values : array<string|int, mixed> = []
Return values
staticgenerateFromUserException()
Generate OutputResponse from UserException
public
static generateFromUserException(UserException $exception[, array<string|int, mixed> $values = [] ]) : static
Parameters
- $exception : UserException
- $values : array<string|int, mixed> = []
Return values
staticgetControllerOutput()
Get the controller output
public
getControllerOutput() : string|null
Return values
string|nullsetControllerOutput()
Set the controller output
public
setControllerOutput(string $controllerOutput) : void
Parameters
- $controllerOutput : string