Skip to content

Class Rule

abstract Class \Klitsche\Dog\Analyzer\Rule

Methods

__construct()

public __construct ( 
    string $id, 
    string $issueLevel, 
    array $match = []
 ): 
Parameters
id string
issueLevel string
match array

analyze()

public analyze ( 
    \Klitsche\Dog\Elements\ElementInterface $element
 ): \Klitsche\Dog\Analyzer\Issue[]
Parameters
element \Klitsche\Dog\Elements\ElementInterface
Returns
\Klitsche\Dog\Analyzer\Issue[]

create()

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

getId()

public getId (  ): string
Returns
string

matches()

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

Test Coverage 💚

  • 💚 Lines: 93.33% (14 / 15)
  • 💛 Methods: 80% (4 / 5)

Extended by