PHP Interface Flitch\Rule\TokenRuleInterface

Rules implementing this interface will be able to register for certain tokens and be notified for each occurence.
Afficher le fichier Open project: dasprid/flitch

Méthodes publiques

Méthode Description
getListenerTokens ( ) : array Get all tokens the rule should listen to.
visitToken ( File $file ) : void Check a given file for rule violations at the given position.

Method Details

getListenerTokens() public méthode

Get all tokens the rule should listen to.
public getListenerTokens ( ) : array
Résultat array

visitToken() public méthode

Check a given file for rule violations at the given position.
public visitToken ( File $file ) : void
$file Flitch\File\File
Résultat void