PHP 클래스 Themsaid\Langman\Commands\ShowCommand

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

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The name and signature of the console command.
$file string Filename to read from.
$files array Array of requested file in different languages.
$key string Key name to show results for.
$languages array Array of displayable languages.
$signature string The name and signature of the console command.

공개 메소드들

메소드 설명
__construct ( Manager $manager ) ListCommand constructor.
handle ( ) : mixed Execute the console command.

비공개 메소드들

메소드 설명
filesFromKey ( ) : array Array of requested file in different languages.
getLanguages ( ) : array Get the languages to be displayed in the command output.
parseKey ( ) : void Parse the given key argument.
shouldShowKey ( $key ) : boolean Determine if the given key should exist in the output.
tableRows ( ) : array The output of the table rows.

메소드 상세

__construct() 공개 메소드

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

handle() 공개 메소드

Execute the console command.
public handle ( ) : mixed
리턴 mixed

프로퍼티 상세

$description 보호되어 있는 프로퍼티

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

$file 보호되어 있는 프로퍼티

Filename to read from.
protected string $file
리턴 string

$files 보호되어 있는 프로퍼티

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

$key 보호되어 있는 프로퍼티

Key name to show results for.
protected string $key
리턴 string

$languages 보호되어 있는 프로퍼티

Array of displayable languages.
protected array $languages
리턴 array

$signature 보호되어 있는 프로퍼티

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