rector/vendor/symfony/console/Event/ConsoleEvent.php
Tomas Votruba 361d8f4a2f Updated Rector to commit f374b9faa834b5cceef16d99dd46e147ce753312
f374b9faa8 [PHP 8.0] Include keys in annotation to attribute transformation (#1766)
2022-02-05 10:39:52 +00:00

55 lines
1.8 KiB
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix20220205\Symfony\Component\Console\Event;
use RectorPrefix20220205\Symfony\Component\Console\Command\Command;
use RectorPrefix20220205\Symfony\Component\Console\Input\InputInterface;
use RectorPrefix20220205\Symfony\Component\Console\Output\OutputInterface;
use RectorPrefix20220205\Symfony\Contracts\EventDispatcher\Event;
/**
* Allows to inspect input and output of a command.
*
* @author Francesco Levorato <git@flevour.net>
*/
class ConsoleEvent extends \RectorPrefix20220205\Symfony\Contracts\EventDispatcher\Event
{
protected $command;
private $input;
private $output;
public function __construct(?\RectorPrefix20220205\Symfony\Component\Console\Command\Command $command, \RectorPrefix20220205\Symfony\Component\Console\Input\InputInterface $input, \RectorPrefix20220205\Symfony\Component\Console\Output\OutputInterface $output)
{
$this->command = $command;
$this->input = $input;
$this->output = $output;
}
/**
* Gets the command that is executed.
*/
public function getCommand() : ?\RectorPrefix20220205\Symfony\Component\Console\Command\Command
{
return $this->command;
}
/**
* Gets the input instance.
*/
public function getInput() : \RectorPrefix20220205\Symfony\Component\Console\Input\InputInterface
{
return $this->input;
}
/**
* Gets the output instance.
*/
public function getOutput() : \RectorPrefix20220205\Symfony\Component\Console\Output\OutputInterface
{
return $this->output;
}
}