PHP Класс Overtrue\PHPLint\Command\LintCommand

Наследование: extends Symfony\Component\Console\Command\Command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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