PHP Class GrumPHP\Task\AbstractLinterTask

Inheritance: implements GrumPHP\Task\TaskInterface
Afficher le fichier Open project: phpro/grumphp Class Usage Examples

Protected Properties

Свойство Type Description
$grumPHP GrumPHP\Configuration\GrumPHP
$linter GrumPHP\Linter\LinterInterface

Méthodes publiques

Méthode Description
__construct ( GrumPHP $grumPHP, GrumPHP\Linter\LinterInterface $linter )
getConfigurableOptions ( ) : Symfony\Component\OptionsResolver\OptionsResolver
getConfiguration ( )

Méthodes protégées

Méthode Description
guardLinterIsInstalled ( ) Validates if the linter is installed.
lint ( FilesCollection $files ) : LintErrorsCollection

Method Details

__construct() public méthode

public __construct ( GrumPHP $grumPHP, GrumPHP\Linter\LinterInterface $linter )
$grumPHP GrumPHP\Configuration\GrumPHP
$linter GrumPHP\Linter\LinterInterface

getConfigurableOptions() public méthode

public getConfigurableOptions ( ) : Symfony\Component\OptionsResolver\OptionsResolver
Résultat Symfony\Component\OptionsResolver\OptionsResolver

getConfiguration() public méthode

public getConfiguration ( )

guardLinterIsInstalled() protected méthode

Validates if the linter is installed.
protected guardLinterIsInstalled ( )

lint() protected méthode

protected lint ( FilesCollection $files ) : LintErrorsCollection
$files GrumPHP\Collection\FilesCollection
Résultat GrumPHP\Collection\LintErrorsCollection

Property Details

$grumPHP protected_oe property

protected GrumPHP,GrumPHP\Configuration $grumPHP
Résultat GrumPHP\Configuration\GrumPHP

$linter protected_oe property

protected LinterInterface,GrumPHP\Linter $linter
Résultat GrumPHP\Linter\LinterInterface