| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 53.85% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class LoadGameCommand extends Command |
||
| 16 | { |
||
| 17 | protected static $defaultName = 'game:load'; |
||
| 18 | |||
| 19 | 2 | public function __construct( |
|
| 20 | private PlayerState $playerState, |
||
| 21 | ) { |
||
| 22 | 2 | parent::__construct(); |
|
| 23 | 2 | } |
|
| 24 | |||
| 25 | 2 | protected function configure(): void |
|
| 26 | { |
||
| 27 | $this |
||
| 28 | 2 | ->setDescription('This command loads existing game') |
|
| 29 | 2 | ->addArgument('player', InputArgument::REQUIRED, 'Player to load'); |
|
| 30 | 2 | } |
|
| 31 | |||
| 32 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 41 | } |
||
| 42 | } |
||
| 43 |