PHP Class Fedeisas\LaravelJsRoutes\Commands\RoutesJavascriptCommand

Inheritance: extends Illuminate\Console\Command
Show file Open project: fedeisas/laravel-js-routes

Protected Properties

Property Type Description
$description string The console command description.
$generator Fedeisas\LaravelJsRoutes\Generators\RoutesJavascriptGenerator Javascript generator instance.
$name string The console command name.

Public Methods

Method Description
__construct ( RoutesJavascriptGenerator $generator ) : void Create a new command instance.
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.
getPath ( ) : string Get the path to the file that should be generated.

Method Details

__construct() public method

Create a new command instance.
public __construct ( RoutesJavascriptGenerator $generator ) : void
$generator Fedeisas\LaravelJsRoutes\Generators\RoutesJavascriptGenerator
return void

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed

getArguments() protected method

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

getOptions() protected method

Get the console command options.
protected getOptions ( ) : array
return array

getPath() protected method

Get the path to the file that should be generated.
protected getPath ( ) : string
return string

Property Details

$description protected property

The console command description.
protected string $description
return string

$generator protected property

Javascript generator instance.
protected RoutesJavascriptGenerator,Fedeisas\LaravelJsRoutes\Generators $generator
return Fedeisas\LaravelJsRoutes\Generators\RoutesJavascriptGenerator

$name protected property

The console command name.
protected string $name
return string