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