PHP Class Flitch\File\Violation

Datei anzeigen Open project: dasprid/flitch Class Usage Examples

Protected Properties

Property Type Description
$column integer Column the error occured in.
$line integer Line the error occured in.
$message string Descriptive message.
$severity integer Severity of the error.
$source string Source rule of the error.

Public Methods

Method Description
__construct ( integer $line, integer $column, integer $severity, string $message, string $source ) : void Create a new violation.
getColumn ( ) : integer Get the column the error occured in.
getLine ( ) : integer Get the line the error occured in.
getMessage ( ) : string Get the descriptive message.
getSeverity ( ) : integer Get the severity of the error.
getSeverityFromString ( string $severity ) : integer Get severity from a string.
getSeverityName ( ) : string Get the severity as string.
getSource ( ) : string Get source rule of the error.

Method Details

__construct() public method

Create a new violation.
public __construct ( integer $line, integer $column, integer $severity, string $message, string $source ) : void
$line integer
$column integer
$severity integer
$message string
$source string
return void

getColumn() public method

Get the column the error occured in.
public getColumn ( ) : integer
return integer

getLine() public method

Get the line the error occured in.
public getLine ( ) : integer
return integer

getMessage() public method

Get the descriptive message.
public getMessage ( ) : string
return string

getSeverity() public method

Get the severity of the error.
public getSeverity ( ) : integer
return integer

getSeverityFromString() public static method

Get severity from a string.
public static getSeverityFromString ( string $severity ) : integer
$severity string
return integer

getSeverityName() public method

Get the severity as string.
public getSeverityName ( ) : string
return string

getSource() public method

Get source rule of the error.
public getSource ( ) : string
return string

Property Details

$column protected_oe property

Column the error occured in.
protected int $column
return integer

$line protected_oe property

Line the error occured in.
protected int $line
return integer

$message protected_oe property

Descriptive message.
protected string $message
return string

$severity protected_oe property

Severity of the error.
protected int $severity
return integer

$source protected_oe property

Source rule of the error.
protected string $source
return string