PHP 클래스 HippoPHP\Hippo\Checks\AbstractCheck

저자: James Brooks ([email protected])
상속: implements HippoPHP\Hippo\Checks\CheckInterface
파일 보기 프로젝트 열기: hippophp/hippo

보호된 프로퍼티들

프로퍼티 타입 설명
$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