PHP Class Themsaid\Langman\Commands\TransCommand

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

Méthodes publiques

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

Private Methods

Méthode Description
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.

Method Details

__construct() public méthode

ListCommand constructor.
public __construct ( Manager $manager ) : void
$manager Themsaid\Langman\Manager
Résultat void

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

$fileName protected_oe property

The name of the language file we're going to alter.
protected string $fileName
Résultat string

$files protected_oe property

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

$key protected_oe property

The name of the key we're going to update or create.
protected string $key
Résultat string

$languageKey protected_oe property

The name of the only language we're going to alter its file.
protected null|string $languageKey
Résultat null | string

$packageName protected_oe property

The name of the package.
protected string $packageName
Résultat string

$signature protected_oe property

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