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

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

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

Свойство Тип Описание
$description string The name and signature of the console command.
$fileName string The name of the language file we're going to alter.
$files array Array of requested file in different languages.
$key string The name of the key we're going to update or create.
$languageKey null | string The name of the only language we're going to alter its file.
$packageName string The name of the package.
$signature string The name and signature of the console command.

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

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

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

Метод Описание
collectValues ( $languages ) : array Collect translation values from console via questions.
filesFromKey ( ) : array Array of requested file in different languages.
fillKey ( ) : void Fill a translation key in all languages.
parseKey ( ) : boolean Parse the given key argument.

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

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

ListCommand constructor.
public __construct ( Manager $manager ) : void
$manager Themsaid\Langman\Manager
Результат void

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

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

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

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

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

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

The name of the language file we're going to alter.
protected string $fileName
Результат string

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

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

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

The name of the key we're going to update or create.
protected string $key
Результат string

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

The name of the only language we're going to alter its file.
protected null|string $languageKey
Результат null | string

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

The name of the package.
protected string $packageName
Результат string

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

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