PHP Класс PhpCsFixer\Console\ConfigurationResolver

Автор: Fabien Potencier ([email protected])
Автор: Katsuhiro Ogawa ([email protected])
Автор: Dariusz Rumiński ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( PhpCsFixer\ConfigInterface $config, array $options, string $cwd ) ConfigurationResolver constructor.
getCacheFile ( ) : string | null
getCacheManager ( ) : PhpCsFixer\Cache\CacheManagerInterface
getConfig ( ) : PhpCsFixer\ConfigInterface Returns config instance.
getConfigFile ( ) : null | string Returns config file path.
getDiffer ( ) : PhpCsFixer\Differ\DifferInterface
getFinder ( )
getFixers ( ) : PhpCsFixer\Fixer\FixerInterface[] Returns fixers.
getLinter ( ) : PhpCsFixer\Linter\LinterInterface
getPath ( ) : string[] Returns path.
getProgress ( ) : boolean Returns progress flag.
getReporter ( ) : PhpCsFixer\Report\ReporterInterface
getRiskyAllowed ( ) : boolean
getRules ( ) : array Returns rules.
getUsingCache ( ) : boolean
isDryRun ( ) : boolean Returns dry-run flag.

Приватные методы

Метод Описание
computeConfigFiles ( ) : string[] Compute file candidates for config file.
getFormat ( ) : string
getRuleSet ( )
isStdIn ( ) : boolean
iterableToTraversable ( iterable $iterable ) : Traversable
parseRules ( ) : array Compute rules.
resolveFinder ( ) Apply path on config instance.
setOption ( string $name, mixed $value ) Set option that will be resolved.

Описание методов

__construct() публичный Метод

ConfigurationResolver constructor.
public __construct ( PhpCsFixer\ConfigInterface $config, array $options, string $cwd )
$config PhpCsFixer\ConfigInterface
$options array
$cwd string

getCacheFile() публичный Метод

public getCacheFile ( ) : string | null
Результат string | null

getCacheManager() публичный Метод

public getCacheManager ( ) : PhpCsFixer\Cache\CacheManagerInterface
Результат PhpCsFixer\Cache\CacheManagerInterface

getConfig() публичный Метод

Returns config instance.
public getConfig ( ) : PhpCsFixer\ConfigInterface
Результат PhpCsFixer\ConfigInterface

getConfigFile() публичный Метод

Returns config file path.
public getConfigFile ( ) : null | string
Результат null | string

getDiffer() публичный Метод

public getDiffer ( ) : PhpCsFixer\Differ\DifferInterface
Результат PhpCsFixer\Differ\DifferInterface

getFinder() публичный Метод

public getFinder ( )

getFixers() публичный Метод

Returns fixers.
public getFixers ( ) : PhpCsFixer\Fixer\FixerInterface[]
Результат PhpCsFixer\Fixer\FixerInterface[] An array of FixerInterface

getLinter() публичный Метод

public getLinter ( ) : PhpCsFixer\Linter\LinterInterface
Результат PhpCsFixer\Linter\LinterInterface

getPath() публичный Метод

Returns path.
public getPath ( ) : string[]
Результат string[]

getProgress() публичный Метод

Returns progress flag.
public getProgress ( ) : boolean
Результат boolean

getReporter() публичный Метод

public getReporter ( ) : PhpCsFixer\Report\ReporterInterface
Результат PhpCsFixer\Report\ReporterInterface

getRiskyAllowed() публичный Метод

public getRiskyAllowed ( ) : boolean
Результат boolean

getRules() публичный Метод

Returns rules.
public getRules ( ) : array
Результат array

getUsingCache() публичный Метод

public getUsingCache ( ) : boolean
Результат boolean

isDryRun() публичный Метод

Returns dry-run flag.
public isDryRun ( ) : boolean
Результат boolean