PHP Class GrumPHP\Task\AbstractLinterTask

Inheritance: implements GrumPHP\Task\TaskInterface
Mostra file Open project: phpro/grumphp Class Usage Examples

Protected Properties

Property Type Description
$grumPHP GrumPHP\Configuration\GrumPHP
$linter GrumPHP\Linter\LinterInterface

Public Methods

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

Protected Methods

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

Method Details

__construct() public method

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

getConfigurableOptions() public method

public getConfigurableOptions ( ) : Symfony\Component\OptionsResolver\OptionsResolver
return Symfony\Component\OptionsResolver\OptionsResolver

getConfiguration() public method

public getConfiguration ( )

guardLinterIsInstalled() protected method

Validates if the linter is installed.
protected guardLinterIsInstalled ( )

lint() protected method

protected lint ( FilesCollection $files ) : LintErrorsCollection
$files GrumPHP\Collection\FilesCollection
return GrumPHP\Collection\LintErrorsCollection

Property Details

$grumPHP protected_oe property

protected GrumPHP,GrumPHP\Configuration $grumPHP
return GrumPHP\Configuration\GrumPHP

$linter protected_oe property

protected LinterInterface,GrumPHP\Linter $linter
return GrumPHP\Linter\LinterInterface