123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace Symfony\Component\Console\Event;
- final class ConsoleCommandEvent extends ConsoleEvent
- {
-
- public const RETURN_CODE_DISABLED = 113;
-
- private $commandShouldRun = true;
-
- public function disableCommand(): bool
- {
- return $this->commandShouldRun = false;
- }
- public function enableCommand(): bool
- {
- return $this->commandShouldRun = true;
- }
-
- public function commandShouldRun(): bool
- {
- return $this->commandShouldRun;
- }
- }
|