ConsoleSignalEvent.php 912 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Console\Event;
  11. use Symfony\Component\Console\Command\Command;
  12. use Symfony\Component\Console\Input\InputInterface;
  13. use Symfony\Component\Console\Output\OutputInterface;
  14. /**
  15. * @author marie <marie@users.noreply.github.com>
  16. */
  17. final class ConsoleSignalEvent extends ConsoleEvent
  18. {
  19. private $handlingSignal;
  20. public function __construct(Command $command, InputInterface $input, OutputInterface $output, int $handlingSignal)
  21. {
  22. parent::__construct($command, $input, $output);
  23. $this->handlingSignal = $handlingSignal;
  24. }
  25. public function getHandlingSignal(): int
  26. {
  27. return $this->handlingSignal;
  28. }
  29. }