PHP Класс HippoPHP\Hippo\Checks\AbstractCheck

Автор: James Brooks ([email protected])
Наследование: implements HippoPHP\Hippo\Checks\CheckInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$checkResult HippoPHP\Hippo\CheckResult Result of the check.
$severity integer Severity that the check will produce.

Открытые методы

Метод Описание
checkFile ( CheckContext $checkContext, Config $config ) : CheckResult Runs checks on the file.
setSeverity ( integer $severity ) : HippoPHP\Hippo\AbstractCheck Set the severity level of the check.

Защищенные методы

Метод Описание
addViolation ( File $file, integer $line, integer $column, string $message, integer $severity = null ) Add a violation to the current file.
checkFileInternal ( CheckContext $checkContext, Config $config )

Описание методов

addViolation() защищенный Метод

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() публичный Метод

Runs checks on the file.
public checkFile ( CheckContext $checkContext, Config $config ) : CheckResult
$checkContext HippoPHP\Hippo\CheckContext
$config HippoPHP\Hippo\Config\Config
Результат HippoPHP\Hippo\CheckResult

checkFileInternal() абстрактный защищенный Метод

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

setSeverity() публичный Метод

Set the severity level of the check.
public setSeverity ( integer $severity ) : HippoPHP\Hippo\AbstractCheck
$severity integer
Результат HippoPHP\Hippo\AbstractCheck

Описание свойств

$checkResult защищенное свойство

Result of the check.
protected CheckResult,HippoPHP\Hippo $checkResult
Результат HippoPHP\Hippo\CheckResult

$severity защищенное свойство

Severity that the check will produce.
protected int $severity
Результат integer