PHP Interface Flitch\Rule\TokenRuleInterface

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

Public Methods

Method 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 method

Get all tokens the rule should listen to.
public getListenerTokens ( ) : array
return array

visitToken() public method

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