PHP 클래스 Overtrue\PHPLint\Command\LintCommand

상속: extends Symfony\Component\Console\Command\Command
파일 보기 프로젝트 열기: overtrue/phplint

보호된 프로퍼티들

프로퍼티 타입 설명
$defaults array
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

공개 메소드들

메소드 설명
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Initializes the command just after the input has been validated.

보호된 메소드들

메소드 설명
configure ( ) Configures the current command.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer Executes the current command.
executeLint ( Linter $linter, Symfony\Component\Console\Output\OutputInterface $output, integer $fileCount, boolean $cache = true ) Execute lint and return errors.
getConfigFile ( ) : string | null Get configuration file.
getScreenColumns ( ) : integer Get screen columns.
loadConfiguration ( string $path ) : array Load configuration from yaml.
mergeOptions ( ) : array Merge options.
showErrors ( array $errors ) Show errors detail.

메소드 상세

configure() 보호된 메소드

Configures the current command.
protected configure ( )

execute() 보호된 메소드

This method is not abstract because you can use this class as a concrete class. In this case, instead of defining the execute() method, you set the code to execute by passing a Closure to the setCode() method.
또한 보기: setCode()
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer
$input Symfony\Component\Console\Input\InputInterface An InputInterface instance
$output Symfony\Component\Console\Output\OutputInterface An OutputInterface instance
리턴 null | integer null or 0 if everything went fine, or an error code

executeLint() 보호된 메소드

Execute lint and return errors.
protected executeLint ( Linter $linter, Symfony\Component\Console\Output\OutputInterface $output, integer $fileCount, boolean $cache = true )
$linter Overtrue\PHPLint\Linter
$output Symfony\Component\Console\Output\OutputInterface
$fileCount integer
$cache boolean

getConfigFile() 보호된 메소드

Get configuration file.
protected getConfigFile ( ) : string | null
리턴 string | null

getScreenColumns() 보호된 메소드

Get screen columns.
protected getScreenColumns ( ) : integer
리턴 integer

initialize() 공개 메소드

This is mainly useful when a lot of commands extends one main command where some things need to be initialized based on the input arguments and options.
public initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface An InputInterface instance
$output Symfony\Component\Console\Output\OutputInterface An OutputInterface instance

loadConfiguration() 보호된 메소드

Load configuration from yaml.
protected loadConfiguration ( string $path ) : array
$path string
리턴 array

mergeOptions() 보호된 메소드

Merge options.
protected mergeOptions ( ) : array
리턴 array

showErrors() 보호된 메소드

Show errors detail.
protected showErrors ( array $errors )
$errors array

프로퍼티 상세

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

protected array $defaults
리턴 array

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

protected InputInterface,Symfony\Component\Console\Input $input
리턴 Symfony\Component\Console\Input\InputInterface

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

protected OutputInterface,Symfony\Component\Console\Output $output
리턴 Symfony\Component\Console\Output\OutputInterface