ConsoleCommandEvent.php
1 year ago
ConsoleErrorEvent.php
1 year ago
ConsoleEvent.php
2 years ago
ConsoleSignalEvent.php
2 years ago
ConsoleTerminateEvent.php
2 years ago
ConsoleSignalEvent.php
32 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 Matomo\Dependencies\Symfony\Component\Console\Event; |
| 12 | |
| 13 | use Matomo\Dependencies\Symfony\Component\Console\Command\Command; |
| 14 | use Matomo\Dependencies\Symfony\Component\Console\Input\InputInterface; |
| 15 | use Matomo\Dependencies\Symfony\Component\Console\Output\OutputInterface; |
| 16 | /** |
| 17 | * @author marie <marie@users.noreply.github.com> |
| 18 | */ |
| 19 | final class ConsoleSignalEvent extends ConsoleEvent |
| 20 | { |
| 21 | private $handlingSignal; |
| 22 | public function __construct(Command $command, InputInterface $input, OutputInterface $output, int $handlingSignal) |
| 23 | { |
| 24 | parent::__construct($command, $input, $output); |
| 25 | $this->handlingSignal = $handlingSignal; |
| 26 | } |
| 27 | public function getHandlingSignal() : int |
| 28 | { |
| 29 | return $this->handlingSignal; |
| 30 | } |
| 31 | } |
| 32 |