PHP 클래스 Themsaid\Langman\Commands\TransCommand

상속: extends Illuminate\Console\Command
파일 보기 프로젝트 열기: themsaid/laravel-langman

보호된 프로퍼티들

프로퍼티 타입 설명
$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