PHP Class Caffeinated\Modules\Console\Commands\ModuleListCommand

Inheritance: extends Illuminate\Console\Command
Datei anzeigen Open project: caffeinated/modules

Protected Properties

Property Type Description
$description string The console command description.
$headers array The table headers for the command.
$module Caffeinated\Modules\Modules
$name string The console command name.

Public Methods

Method Description
__construct ( Modules $module ) Create a new command instance.
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
displayModules ( array $modules ) Display the module information on the console.
getModuleInformation ( string $module ) : array Returns module manifest information.
getModules ( ) : array Get all modules.

Method Details

__construct() public method

Create a new command instance.
public __construct ( Modules $module )
$module Caffeinated\Modules\Modules

displayModules() protected method

Display the module information on the console.
protected displayModules ( array $modules )
$modules array

fire() public method

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

getModuleInformation() protected method

Returns module manifest information.
protected getModuleInformation ( string $module ) : array
$module string
return array

getModules() protected method

Get all modules.
protected getModules ( ) : array
return array

Property Details

$description protected_oe property

The console command description.
protected string $description
return string

$headers protected_oe property

The table headers for the command.
protected array $headers
return array

$module protected_oe property

protected Modules,Caffeinated\Modules $module
return Caffeinated\Modules\Modules

$name protected_oe property

The console command name.
protected string $name
return string