PHP Class Neos\Flow\Cli\Response

Inheritance: extends Neos\Flow\Mvc\Response
Mostrar archivo Open project: neos/flow-development-collection Class Usage Examples

Public Methods

Method Description
getExitCode ( ) : integer Gets the numerical exit code which should be returned when exiting this application.
getOutputFormat ( ) : integer Returns the currently set output format.
hasColorSupport ( ) : boolean Tells if the response content should be styled on send().
send ( ) : void Sends the response
setColorSupport ( boolean $colorSupport ) : void Sets color support / styled output to yes, no or auto detection
setExitCode ( integer $exitCode ) : void Sets the numerical exit code which should be returned when exiting this application.
setOutputFormat ( integer $outputFormat ) : void Sets the desired output format.

Method Details

getExitCode() public method

Gets the numerical exit code which should be returned when exiting this application.
public getExitCode ( ) : integer
return integer

getOutputFormat() public method

Returns the currently set output format.
public getOutputFormat ( ) : integer
return integer One of the OUTPUTFORMAT_* constants

hasColorSupport() public method

Regardless of this setting content will only be styled with output format set to "styled".
public hasColorSupport ( ) : boolean
return boolean TRUE if the terminal support ANSI colors, otherwise FALSE

send() public method

Sends the response
public send ( ) : void
return void

setColorSupport() public method

Sets color support / styled output to yes, no or auto detection
public setColorSupport ( boolean $colorSupport ) : void
$colorSupport boolean TRUE, FALSE or NULL (= autodetection)
return void

setExitCode() public method

Sets the numerical exit code which should be returned when exiting this application.
public setExitCode ( integer $exitCode ) : void
$exitCode integer
return void

setOutputFormat() public method

Sets the desired output format.
public setOutputFormat ( integer $outputFormat ) : void
$outputFormat integer One of the OUTPUTFORMAT_* constants
return void