Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConsoleAlarmEvent.php

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

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\Event
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal