PHP Class Themsaid\Langman\Commands\SyncCommand

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

Protected Properties

Property Type Description
$description string The description of the console command.
$signature string The name and signature of the console command.

Public Methods

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

Private Methods

Method Description
fillMissingKeys ( string $fileName, array $foundMissingKeys, string $languageKey ) : void Fill the missing keys with an empty string in the given file.
syncKeysBetweenLanguages ( $translationFiles ) : void Synchronize keys that exist in a language but not the other.
syncKeysFromFiles ( $translationFiles ) : void Synchronize keys found in project files but missing in languages.

Method Details

__construct() public method

Command 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 description of the console command.
protected string $description
return string

$signature protected property

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