class ConsoleAlarmEvent
Hierarchy
- class \Symfony\Contracts\EventDispatcher\Event implements \Psr\EventDispatcher\StoppableEventInterface
- class \Symfony\Component\Console\Event\ConsoleEvent extends \Symfony\Contracts\EventDispatcher\Event
- class \Symfony\Component\Console\Event\ConsoleAlarmEvent extends \Symfony\Component\Console\Event\ConsoleEvent
- class \Symfony\Component\Console\Event\ConsoleEvent extends \Symfony\Contracts\EventDispatcher\Event
Expanded class hierarchy of ConsoleAlarmEvent
1 file declares its use of ConsoleAlarmEvent
- Application.php in vendor/
symfony/ console/ Application.php
File
-
vendor/
symfony/ console/ Event/ ConsoleAlarmEvent.php, line 18
Namespace
Symfony\Component\Console\EventView source
final class ConsoleAlarmEvent extends ConsoleEvent {
public function __construct(Command $command, InputInterface $input, OutputInterface $output, int|false $exitCode = 0) {
parent::__construct($command, $input, $output);
}
public function setExitCode(int $exitCode) : void {
if ($exitCode < 0 || $exitCode > 255) {
throw new \InvalidArgumentException('Exit code must be between 0 and 255.');
}
$this->exitCode = $exitCode;
}
public function abortExit() : void {
$this->exitCode = false;
}
public function getExitCode() : int|false {
return $this->exitCode;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
ConsoleAlarmEvent::abortExit | public | function | |||
ConsoleAlarmEvent::getExitCode | public | function | |||
ConsoleAlarmEvent::setExitCode | public | function | |||
ConsoleAlarmEvent::__construct | public | function | Overrides ConsoleEvent::__construct | ||
ConsoleEvent::getCommand | public | function | Gets the command that is executed. | ||
ConsoleEvent::getInput | public | function | Gets the input instance. | ||
ConsoleEvent::getOutput | public | function | Gets the output instance. | ||
Event::$propagationStopped | private | property | |||
Event::isPropagationStopped | public | function | Is propagation stopped? | Overrides StoppableEventInterface::isPropagationStopped | |
Event::stopPropagation | public | function | Stops the propagation of the event to further event listeners. | 1 |