for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Cocotte\Console;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\EventDispatcher\Event;
final class CommandInteractEvent extends Event
{
/**
* @var CommandInterface
*/
private $command;
* @var InputInterface
private $input;
public function __construct(CommandInterface $command, InputInterface $input)
$this->command = $command;
$this->input = $input;
}
public function command(): CommandInterface
return $this->command;
public function input(): InputInterface
return $this->input;