PHP Class Flitch\Rule\Manager

Afficher le fichier Open project: dasprid/flitch Class Usage Examples

Protected Properties

Свойство Type Description
$globalPath string Global standards path.
$listenerTokens array Tokens to listen to.
$loader Loader Rule loader.
$localPath string Local standards path.
$rules string Rules in current standard.
$standard string Name of the current standard.

Méthodes publiques

Méthode Description
__construct ( string $globalPath, string $localPath, $standard ) : void Create a new rule manager.
check ( File $file ) : void Check a given file for all rules.

Méthodes protégées

Méthode Description
loadStandard ( ) : void Load a coding standard.
loadStandardFile ( string $name ) : array Load a coding standard.

Method Details

__construct() public méthode

Create a new rule manager.
public __construct ( string $globalPath, string $localPath, $standard ) : void
$globalPath string
$localPath string
Résultat void

check() public méthode

Check a given file for all rules.
public check ( File $file ) : void
$file Flitch\File\File
Résultat void

loadStandard() protected méthode

Load a coding standard.
protected loadStandard ( ) : void
Résultat void

loadStandardFile() protected méthode

Load a coding standard.
protected loadStandardFile ( string $name ) : array
$name string
Résultat array

Property Details

$globalPath protected_oe property

Global standards path.
protected string $globalPath
Résultat string

$listenerTokens protected_oe property

Tokens to listen to.
protected array $listenerTokens
Résultat array

$loader protected_oe property

Rule loader.
protected Loader,Flitch\Rule $loader
Résultat Loader

$localPath protected_oe property

Local standards path.
protected string $localPath
Résultat string

$rules protected_oe property

Rules in current standard.
protected string $rules
Résultat string

$standard protected_oe property

Name of the current standard.
protected string $standard
Résultat string