PHP Class Nwidart\Modules\Commands\GeneratorCommand

Inheritance: extends Illuminate\Console\Command
Mostrar archivo Open project: nwidart/laravel-modules Class Usage Examples

Protected Properties

Property Type Description
$argumentName string The name of 'name' argument.

Public Methods

Method Description
fire ( ) Execute the console command.
getClass ( ) : string Get class name.
getClassNamespace ( Module $module ) : string Get class namespace.
getDefaultNamespace ( ) : string Get default namespace.

Protected Methods

Method Description
getDestinationFilePath ( ) : string Get the destination file path.
getTemplateContents ( ) : string Get template contents.

Method Details

fire() public method

Execute the console command.
public fire ( )

getClass() public method

Get class name.
public getClass ( ) : string
return string

getClassNamespace() public method

Get class namespace.
public getClassNamespace ( Module $module ) : string
$module Nwidart\Modules\Module
return string

getDefaultNamespace() public method

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

getDestinationFilePath() abstract protected method

Get the destination file path.
abstract protected getDestinationFilePath ( ) : string
return string

getTemplateContents() abstract protected method

Get template contents.
abstract protected getTemplateContents ( ) : string
return string

Property Details

$argumentName protected_oe property

The name of 'name' argument.
protected string $argumentName
return string