PHP Класс Themsaid\Langman\Commands\ShowCommand

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__construct ( Manager $manager ) ListCommand constructor.
handle ( ) : mixed Execute the console command.

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

handle() публичный Метод

Execute the console command.
public handle ( ) : mixed
Результат mixed

Описание свойств

$description защищенное свойство

The name and signature of the console command.
protected string $description
Результат string

$file защищенное свойство

Filename to read from.
protected string $file
Результат string

$files защищенное свойство

Array of requested file in different languages.
protected array $files
Результат array

$key защищенное свойство

Key name to show results for.
protected string $key
Результат string

$languages защищенное свойство

Array of displayable languages.
protected array $languages
Результат array

$signature защищенное свойство

The name and signature of the console command.
protected string $signature
Результат string