You are here

public function ConsoleTerminateEvent::setExitCode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Event/ConsoleTerminateEvent.php \Symfony\Component\Console\Event\ConsoleTerminateEvent::setExitCode()

Sets the exit code.

Parameters

int $exitCode The command exit code:

1 call to ConsoleTerminateEvent::setExitCode()
ConsoleTerminateEvent::__construct in vendor/symfony/console/Event/ConsoleTerminateEvent.php

File

vendor/symfony/console/Event/ConsoleTerminateEvent.php, line 44

Class

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

Namespace

Symfony\Component\Console\Event

Code

public function setExitCode($exitCode) {
  $this->exitCode = (int) $exitCode;
}