Skip to content

Interface RuleInterface

Interface \Klitsche\Dog\Analyzer\RuleInterface

Methods

create()

public static create ( 
    string $id, 
    string $issueLevel, 
    array $match = []
 ): self
Parameters
id string
issueLevel string
match array
Returns
self

matches()

public matches ( 
    \Klitsche\Dog\Elements\ElementInterface $element
 ): bool
Parameters
element \Klitsche\Dog\Elements\ElementInterface
Returns
bool

getId()

public getId (  ): string
Returns
string

Implemented by