PHP Interface PhpCsFixer\RuleSetInterface

Example of set: ["@PSR2" => true, "@PSR1" => false, "strict" => true].
Author: Dariusz Rumiński ([email protected])
Afficher le fichier Open project: friendsofphp/php-cs-fixer Interface Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $set = [] )
create ( array $set = [] )
getRuleConfiguration ( string $rule ) : array | null Get configuration for given rule.
getRules ( ) : array Get all rules from rules set.
getSetDefinitionNames ( ) : string[] Get names of all set definitions.
hasRule ( string $rule ) : boolean Check given rule is in rules set.

Method Details

__construct() public méthode

public __construct ( array $set = [] )
$set array

create() public static méthode

public static create ( array $set = [] )
$set array

getRuleConfiguration() public méthode

Get configuration for given rule.
public getRuleConfiguration ( string $rule ) : array | null
$rule string name of rule
Résultat array | null

getRules() public méthode

Get all rules from rules set.
public getRules ( ) : array
Résultat array

getSetDefinitionNames() public méthode

Get names of all set definitions.
public getSetDefinitionNames ( ) : string[]
Résultat string[]

hasRule() public méthode

Check given rule is in rules set.
public hasRule ( string $rule ) : boolean
$rule string name of rule
Résultat boolean