ConsoleSignalEvent
extends ConsoleEvent
in package
FinalYes
Allows to inspect input and output of a command.
Tags
Table of Contents
Properties
- $command : Command|null
- $exitCode : int|false
- $handlingSignal : int
Methods
- __construct() : mixed
- abortExit() : void
- getCommand() : Command|null
- Gets the command that is executed.
- getExitCode() : int|false
- getHandlingSignal() : int
- getInput() : InputInterface
- Gets the input instance.
- getOutput() : OutputInterface
- Gets the output instance.
- setExitCode() : void
Properties
$command
protected
Command|null
$command
$exitCode
private
int|false
$exitCode
= 0
$handlingSignal
private
int
$handlingSignal
Methods
__construct()
public
__construct(Command $command, InputInterface $input, OutputInterface $output, int $handlingSignal[, int|false $exitCode = 0 ]) : mixed
Parameters
- $command : Command
- $input : InputInterface
- $output : OutputInterface
- $handlingSignal : int
- $exitCode : int|false = 0
abortExit()
public
abortExit() : void
getCommand()
Gets the command that is executed.
public
getCommand() : Command|null
Return values
Command|nullgetExitCode()
public
getExitCode() : int|false
Return values
int|falsegetHandlingSignal()
public
getHandlingSignal() : int
Return values
intgetInput()
Gets the input instance.
public
getInput() : InputInterface
Return values
InputInterfacegetOutput()
Gets the output instance.
public
getOutput() : OutputInterface
Return values
OutputInterfacesetExitCode()
public
setExitCode(int $exitCode) : void
Parameters
- $exitCode : int