for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AardsGerds\Game\Infrastructure\Cli\Command;
use AardsGerds\Game\Infrastructure\Cli\PlayerInput;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
final class NewGameCommand extends Command
{
protected static $defaultName = 'game:new';
protected function configure(): void
$this
->setDescription('This command starts new game');
}
protected function execute(InputInterface $input, OutputInterface $output): int
$playerInput = new PlayerInput(new SymfonyStyle($input, $output));
$playerInput
return Command::SUCCESS;