TYPO3  7.6
Public Member Functions | Private Attributes | List of all members
ConsoleTerminateEvent Class Reference
Inheritance diagram for ConsoleTerminateEvent:
ConsoleEvent

Public Member Functions

 __construct (Command $command, InputInterface $input, OutputInterface $output, $exitCode)
 
 setExitCode ($exitCode)
 
 getExitCode ()
 
- Public Member Functions inherited from ConsoleEvent
 __construct (Command $command, InputInterface $input, OutputInterface $output)
 
 getCommand ()
 
 getInput ()
 
 getOutput ()
 

Private Attributes

 $exitCode
 

Additional Inherited Members

- Protected Attributes inherited from ConsoleEvent
 $command
 

Detailed Description

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

Author
Francesco Levorato git@f.nosp@m.levo.nosp@m.ur.ne.nosp@m.t

Definition at line 23 of file ConsoleTerminateEvent.php.

Constructor & Destructor Documentation

__construct ( Command  $command,
InputInterface  $input,
OutputInterface  $output,
  $exitCode 
)

Member Function Documentation

getExitCode ( )

Gets the exit code.

Returns
int The command exit code

Definition at line 54 of file ConsoleTerminateEvent.php.

References ConsoleTerminateEvent\$exitCode.

setExitCode (   $exitCode)

Sets the exit code.

Parameters
int$exitCodeThe command exit code

Definition at line 44 of file ConsoleTerminateEvent.php.

References ConsoleTerminateEvent\$exitCode.

Referenced by ConsoleTerminateEvent\__construct(), and ApplicationTest\getDispatcher().

Member Data Documentation

$exitCode
private