\Symfony\Component\Console\EventConsoleTerminateEvent

Allows to manipulate the exit code of a command after its execution.

Summary

Methods
Properties
Constants
__construct()
getCommand()
getInput()
getOutput()
setExitCode()
getExitCode()
No public properties found
No constants found
No protected methods found
$command
N/A
No private methods found
$input
$output
$exitCode
N/A

Properties

$command

$command : 

Type

$input

$input : 

Type

$output

$output : 

Type

$exitCode

$exitCode : 

Type

Methods

setExitCode()

setExitCode(integer  $exitCode) 

Sets the exit code.

Parameters

integer $exitCode

The command exit code

getExitCode()

getExitCode() : integer

Gets the exit code.

Returns

integer —

The command exit code