PHP 클래스 HippoPHP\Hippo\Violation

저자: James Brooks ([email protected])
파일 보기 프로젝트 열기: hippophp/hippo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$column integer The column that the violation occurred on.
$file File The file that the violation was made on.
$line integer The line number that the violation was made on.
$message string The violation text.
$severity integer The severity of the error.

공개 메소드들

메소드 설명
__construct ( File $file, integer $line, integer $column, integer $severity, string $message ) Creates a new violation.
getColumn ( ) : integer Returns the column number of the violation.
getFile ( ) : File Returns the file of the violation.
getLine ( ) : integer Returns the line number of the violation.
getMessage ( ) : string Returns the violations message.
getSeverities ( ) : int[] Violation severities, in order from most deadly to most peaceful.
getSeverity ( ) : integer Returns the severity of the violation.
getSeverityFromString ( string $severityName ) : integer Get a severity level from a severity name.
getSeverityName ( ) : string Returns the named value of the severity.

비공개 메소드들

메소드 설명
getSeverityNames ( ) : array Array of severity levels to the severity name.

메소드 상세

__construct() 공개 메소드

Creates a new violation.
public __construct ( File $file, integer $line, integer $column, integer $severity, string $message )
$file File
$line integer
$column integer
$severity integer
$message string

getColumn() 공개 메소드

Returns the column number of the violation.
public getColumn ( ) : integer
리턴 integer

getFile() 공개 메소드

Returns the file of the violation.
public getFile ( ) : File
리턴 File

getLine() 공개 메소드

Returns the line number of the violation.
public getLine ( ) : integer
리턴 integer

getMessage() 공개 메소드

Returns the violations message.
public getMessage ( ) : string
리턴 string

getSeverities() 공개 정적인 메소드

Violation severities, in order from most deadly to most peaceful.
public static getSeverities ( ) : int[]
리턴 int[]

getSeverity() 공개 메소드

Returns the severity of the violation.
public getSeverity ( ) : integer
리턴 integer

getSeverityFromString() 공개 정적인 메소드

Get a severity level from a severity name.
public static getSeverityFromString ( string $severityName ) : integer
$severityName string
리턴 integer

getSeverityName() 공개 메소드

Returns the named value of the severity.
public getSeverityName ( ) : string
리턴 string

프로퍼티 상세

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

The column that the violation occurred on.
protected int $column
리턴 integer

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

The file that the violation was made on.
protected File,HippoPHP\Hippo $file
리턴 File

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

The line number that the violation was made on.
protected int $line
리턴 integer

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

The violation text.
protected string $message
리턴 string

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

The severity of the error.
protected int $severity
리턴 integer