PHP 클래스 HippoPHP\Hippo\CheckResult

상속: implements Countabl\Countable
파일 보기 프로젝트 열기: hippophp/hippo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$file File Which file is this check result for.
$violations Violation[] Violations held against the file.
$violationsDirty boolean Was modified since last violation retrieval?

공개 메소드들

메소드 설명
addViolation ( Violation $violation )
count ( ) : integer Counts how many violations are in the result.
getFile ( ) : File Returns which file is this check result for.
getMaximumViolationSeverity ( ) : integer | null
getViolations ( ) : Violation[] Return all of the violations on the file.
hasFailed ( ) : boolean Returns whether check failed.
hasSucceeded ( ) : boolean Returns whether check succeeded.
setFile ( File $file ) Sets which file is this check result for.

비공개 메소드들

메소드 설명
processViolationsIfDirty ( ) Resorts the violations array if it's been changed.
sortViolations ( ) Sorts the violations by line then column.

메소드 상세

addViolation() 공개 메소드

public addViolation ( Violation $violation )
$violation Violation

count() 공개 메소드

Counts how many violations are in the result.
또한 보기: Countable::count()
public count ( ) : integer
리턴 integer

getFile() 공개 메소드

Returns which file is this check result for.
public getFile ( ) : File
리턴 File

getMaximumViolationSeverity() 공개 메소드

getViolations() 공개 메소드

Violations are sorted on a line/column basis.
public getViolations ( ) : Violation[]
리턴 Violation[]

hasFailed() 공개 메소드

Returns whether check failed.
public hasFailed ( ) : boolean
리턴 boolean

hasSucceeded() 공개 메소드

Returns whether check succeeded.
public hasSucceeded ( ) : boolean
리턴 boolean

setFile() 공개 메소드

Sets which file is this check result for.
public setFile ( File $file )
$file File

프로퍼티 상세

$file 보호되어 있는 프로퍼티

Which file is this check result for.
protected File,HippoPHP\Hippo $file
리턴 File

$violations 보호되어 있는 프로퍼티

Violations held against the file.
protected Violation[],HippoPHP\Hippo $violations
리턴 Violation[]

$violationsDirty 보호되어 있는 프로퍼티

Was modified since last violation retrieval?
protected bool $violationsDirty
리턴 boolean