| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class PrepareRouteFilesCommand extends Command |
||
| 10 | { |
||
| 11 | protected static $defaultName = 'api-versioning:prepare-route-files'; |
||
| 12 | |||
| 13 | private array $nextVersions; |
||
| 14 | |||
| 15 | public function __construct(array $nextVersions,string $name = null) |
||
| 16 | { |
||
| 17 | parent::__construct($name); |
||
| 18 | $this->nextVersions = $nextVersions; |
||
| 19 | } |
||
| 20 | |||
| 21 | protected function configure(): void |
||
| 22 | { |
||
| 23 | $this->setDescription('Prepare route configs files'); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param InputInterface $input |
||
| 28 | * @param OutputInterface $output |
||
| 29 | * |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 40 | } |
||
| 41 | } |
||
| 42 |