¨4.0.1¨
This commit is contained in:
@@ -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.'],
|
||||
|
||||
Reference in New Issue
Block a user