PHP Class Nwidart\Modules\Commands\ControllerCommand

Inheritance: extends GeneratorCommand, use trait Nwidart\Modules\Traits\ModuleCommandTrait
Show file Open project: nwidart/laravel-modules

Protected Properties

Property Type Description
$argumentName string The name of argument being used.
$description string The console command description.
$name string The console command name.

Public Methods

Method Description
getDefaultNamespace ( ) : string Get default namespace.
getDestinationFilePath ( ) : string Get controller name.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getControllerName ( ) : array | string
getOptions ( ) : array
getTemplateContents ( ) : string

Private Methods

Method Description
getStubName ( ) : string Get the stub file name based on the plain option

Method Details

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getControllerName() protected method

protected getControllerName ( ) : array | string
return array | string

getDefaultNamespace() public method

Get default namespace.
public getDefaultNamespace ( ) : string
return string

getDestinationFilePath() public method

Get controller name.
public getDestinationFilePath ( ) : string
return string

getOptions() protected method

protected getOptions ( ) : array
return array

getTemplateContents() protected method

protected getTemplateContents ( ) : string
return string

Property Details

$argumentName protected property

The name of argument being used.
protected string $argumentName
return string

$description protected property

The console command description.
protected string $description
return string

$name protected property

The console command name.
protected string $name
return string