PHP Class Themsaid\Langman\Commands\ShowCommand

Inheritance: extends Illuminate\Console\Command
Datei anzeigen Open project: themsaid/laravel-langman

Protected Properties

Property 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.

Public Methods

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

Private Methods

Method 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 method

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

handle() public method

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

Property Details

$description protected_oe property

The name and signature of the console command.
protected string $description
return string

$file protected_oe property

Filename to read from.
protected string $file
return string

$files protected_oe property

Array of requested file in different languages.
protected array $files
return array

$key protected_oe property

Key name to show results for.
protected string $key
return string

$languages protected_oe property

Array of displayable languages.
protected array $languages
return array

$signature protected_oe property

The name and signature of the console command.
protected string $signature
return string