PHP Class Flitch\Rule\Manager

Datei anzeigen Open project: dasprid/flitch Class Usage Examples

Protected Properties

Property 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.

Public Methods

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

Protected Methods

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

Method Details

__construct() public method

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

check() public method

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

loadStandard() protected method

Load a coding standard.
protected loadStandard ( ) : void
return void

loadStandardFile() protected method

Load a coding standard.
protected loadStandardFile ( string $name ) : array
$name string
return array

Property Details

$globalPath protected_oe property

Global standards path.
protected string $globalPath
return string

$listenerTokens protected_oe property

Tokens to listen to.
protected array $listenerTokens
return array

$loader protected_oe property

Rule loader.
protected Loader,Flitch\Rule $loader
return Loader

$localPath protected_oe property

Local standards path.
protected string $localPath
return string

$rules protected_oe property

Rules in current standard.
protected string $rules
return string

$standard protected_oe property

Name of the current standard.
protected string $standard
return string