RuleSetInterface
in
Set of rules to be used by fixer.
Example of set: ["@PSR2" => true, "@PSR1" => false, "strict" => true].
Tags
Table of Contents
Methods
- __construct() : mixed
- getRuleConfiguration() : null|array<string, mixed>
- Get configuration for given rule.
- getRules() : array<string, array<string, mixed>|true>
- Get all rules from rules set.
- hasRule() : bool
- Check given rule is in rules set.
Methods
__construct()
public
__construct([array<string, array<string, mixed>|bool> $set = [] ]) : mixed
Parameters
- $set : array<string, array<string, mixed>|bool> = []
getRuleConfiguration()
Get configuration for given rule.
public
getRuleConfiguration(string $rule) : null|array<string, mixed>
Parameters
- $rule : string
Return values
null|array<string, mixed>getRules()
Get all rules from rules set.
public
getRules() : array<string, array<string, mixed>|true>
Return values
array<string, array<string, mixed>|true>hasRule()
Check given rule is in rules set.
public
hasRule(string $rule) : bool
Parameters
- $rule : string