¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -25,14 +25,15 @@ class ScaffoldEntityCommand extends Command
/**
* The instance of EntityGenerator.
*
* @var \FleetCart\Scaffold\Module\Generators\EntityGenerator
* @var EntityGenerator
*/
private $entityGenerator;
private EntityGenerator $entityGenerator;
/**
* Create a new command instance.
*
* @param \FleetCart\Scaffold\Module\Generators\EntityGenerator $entityGenerator
* @param EntityGenerator $entityGenerator
*/
public function __construct(EntityGenerator $entityGenerator)
{
@@ -41,12 +42,13 @@ class ScaffoldEntityCommand extends Command
$this->entityGenerator = $entityGenerator;
}
/**
* Execute the console command.
*
* @return void
*/
public function handle()
public function handle(): void
{
$this->entityGenerator
->module($this->argument('module'))
@@ -55,12 +57,13 @@ class ScaffoldEntityCommand extends Command
$this->info('Entity generated.');
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
protected function getArguments(): array
{
return [
['entity', InputArgument::REQUIRED, 'The name of the entity.'],