PHP Class Themsaid\Langman\Commands\TransCommand

Inheritance: extends Illuminate\Console\Command
Show file Open project: themsaid/laravel-langman

Protected Properties

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

Public Methods

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

Private Methods

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

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

handle() public method

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

Property Details

$description protected property

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

$fileName protected property

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

$files protected property

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

$key protected property

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

$languageKey protected property

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

$packageName protected property

The name of the package.
protected string $packageName
return string

$signature protected property

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