ConsoleTerminateEvent
extends ConsoleEvent
in package
FinalYes
Allows to manipulate the exit code of a command after its execution.
Tags
Table of Contents
Properties
- $command : Command|null
- $exitCode : int
- $interruptingSignal : int|null
Methods
- __construct() : mixed
- getCommand() : Command|null
- Gets the command that is executed.
- getExitCode() : int
- getInput() : InputInterface
- Gets the input instance.
- getInterruptingSignal() : int|null
- getOutput() : OutputInterface
- Gets the output instance.
- setExitCode() : void
Properties
$command
protected
Command|null
$command
$exitCode
private
int
$exitCode
$interruptingSignal read-only
private
int|null
$interruptingSignal
= null
Methods
__construct()
public
__construct(Command $command, InputInterface $input, OutputInterface $output, int $exitCode[, int|null $interruptingSignal = null ]) : mixed
Parameters
- $command : Command
- $input : InputInterface
- $output : OutputInterface
- $exitCode : int
- $interruptingSignal : int|null = null
getCommand()
Gets the command that is executed.
public
getCommand() : Command|null
Return values
Command|nullgetExitCode()
public
getExitCode() : int
Return values
intgetInput()
Gets the input instance.
public
getInput() : InputInterface
Return values
InputInterfacegetInterruptingSignal()
public
getInterruptingSignal() : int|null
Return values
int|nullgetOutput()
Gets the output instance.
public
getOutput() : OutputInterface
Return values
OutputInterfacesetExitCode()
public
setExitCode(int $exitCode) : void
Parameters
- $exitCode : int