PHP Class HippoPHP\Hippo\Checks\AbstractCheck

Author: James Brooks ([email protected])
Inheritance: implements HippoPHP\Hippo\Checks\CheckInterface
Afficher le fichier Open project: hippophp/hippo

Protected Properties

Свойство Type Description
$checkResult HippoPHP\Hippo\CheckResult Result of the check.
$severity integer Severity that the check will produce.

Méthodes publiques

Méthode Description
checkFile ( CheckContext $checkContext, Config $config ) : CheckResult Runs checks on the file.
setSeverity ( integer $severity ) : HippoPHP\Hippo\AbstractCheck Set the severity level of the check.

Méthodes protégées

Méthode Description
addViolation ( File $file, integer $line, integer $column, string $message, integer $severity = null ) Add a violation to the current file.
checkFileInternal ( CheckContext $checkContext, Config $config )

Method Details

addViolation() protected méthode

Add a violation to the current file.
protected addViolation ( File $file, integer $line, integer $column, string $message, integer $severity = null )
$file HippoPHP\Hippo\File
$line integer
$column integer
$message string
$severity integer

checkFile() public méthode

Runs checks on the file.
public checkFile ( CheckContext $checkContext, Config $config ) : CheckResult
$checkContext HippoPHP\Hippo\CheckContext
$config HippoPHP\Hippo\Config\Config
Résultat HippoPHP\Hippo\CheckResult

checkFileInternal() abstract protected méthode

abstract protected checkFileInternal ( CheckContext $checkContext, Config $config )
$checkContext HippoPHP\Hippo\CheckContext
$config HippoPHP\Hippo\Config\Config

setSeverity() public méthode

Set the severity level of the check.
public setSeverity ( integer $severity ) : HippoPHP\Hippo\AbstractCheck
$severity integer
Résultat HippoPHP\Hippo\AbstractCheck

Property Details

$checkResult protected_oe property

Result of the check.
protected CheckResult,HippoPHP\Hippo $checkResult
Résultat HippoPHP\Hippo\CheckResult

$severity protected_oe property

Severity that the check will produce.
protected int $severity
Résultat integer