PHP Class Themsaid\Langman\Commands\ShowCommand

Inheritance: extends Illuminate\Console\Command
Afficher le fichier Open project: themsaid/laravel-langman

Protected Properties

Свойство Type Description
$description string The name and signature of the console command.
$file string Filename to read from.
$files array Array of requested file in different languages.
$key string Key name to show results for.
$languages array Array of displayable languages.
$signature string The name and signature of the console command.

Méthodes publiques

Méthode Description
__construct ( Manager $manager ) ListCommand constructor.
handle ( ) : mixed Execute the console command.

Private Methods

Méthode Description
filesFromKey ( ) : array Array of requested file in different languages.
getLanguages ( ) : array Get the languages to be displayed in the command output.
parseKey ( ) : void Parse the given key argument.
shouldShowKey ( $key ) : boolean Determine if the given key should exist in the output.
tableRows ( ) : array The output of the table rows.

Method Details

__construct() public méthode

ListCommand constructor.
public __construct ( Manager $manager )
$manager Themsaid\Langman\Manager

handle() public méthode

Execute the console command.
public handle ( ) : mixed
Résultat mixed

Property Details

$description protected_oe property

The name and signature of the console command.
protected string $description
Résultat string

$file protected_oe property

Filename to read from.
protected string $file
Résultat string

$files protected_oe property

Array of requested file in different languages.
protected array $files
Résultat array

$key protected_oe property

Key name to show results for.
protected string $key
Résultat string

$languages protected_oe property

Array of displayable languages.
protected array $languages
Résultat array

$signature protected_oe property

The name and signature of the console command.
protected string $signature
Résultat string