Skip to content

Class Issue

Class \Klitsche\Dog\Analyzer\Issue

Constants

ERROR

public ERROR = 'error'

IGNORE

public IGNORE = 'ignore'

NOTICE

public NOTICE = 'notice'

WARNING

public WARNING = 'warning'

Methods

error()

public static error ( 
    \Klitsche\Dog\Elements\ElementInterface $element, 
    string $message, 
    int $lineNumber, 
    \Klitsche\Dog\Analyzer\RuleInterface $rule
 ): self
Parameters
element \Klitsche\Dog\Elements\ElementInterface
message string
lineNumber int
rule \Klitsche\Dog\Analyzer\RuleInterface
Returns
self

getElement()

public getElement (  ): \Klitsche\Dog\Elements\ElementInterface
Returns
\Klitsche\Dog\Elements\ElementInterface

getLevel()

public getLevel (  ): string
Returns
string

getLineNumber()

public getLineNumber (  ): int
Returns
int

getMessage()

public getMessage (  ): string
Returns
string

getRule()

public getRule (  ): \Klitsche\Dog\Analyzer\RuleInterface
Returns
\Klitsche\Dog\Analyzer\RuleInterface

notice()

public static notice ( 
    \Klitsche\Dog\Elements\ElementInterface $element, 
    string $message, 
    int $lineNumber, 
    \Klitsche\Dog\Analyzer\RuleInterface $rule
 ): self
Parameters
element \Klitsche\Dog\Elements\ElementInterface
message string
lineNumber int
rule \Klitsche\Dog\Analyzer\RuleInterface
Returns
self

warning()

public static warning ( 
    \Klitsche\Dog\Elements\ElementInterface $element, 
    string $message, 
    int $lineNumber, 
    \Klitsche\Dog\Analyzer\RuleInterface $rule
 ): self
Parameters
element \Klitsche\Dog\Elements\ElementInterface
message string
lineNumber int
rule \Klitsche\Dog\Analyzer\RuleInterface
Returns
self

Test Coverage 💚

  • 💚 Lines: 100% (13 / 13)
  • 💚 Methods: 100% (9 / 9)