Méthode | Description | |
---|---|---|
__construct ( string $type, integer $category, integer $severity, string $template, integer $remediation_difficulty, integer $type_id ) | ||
__invoke ( string $file, integer $line, array $template_parameters = [] ) : phan\IssueInstance | ||
emit ( string $type, string $file, integer $line, variadic |
||
emitInstance ( phan\IssueInstance $issue_instance ) : void | ||
emitWithParameters ( string $type, string $file, integer $line, array $template_parameters ) : void | ||
fromType ( string $type ) : |
return Issue | |
getCategory ( ) : integer | ||
getNameForCategory ( integer $category ) : string | ||
getRemediationDifficulty ( ) : integer | ||
getSeverity ( ) : integer | ||
getSeverityName ( ) : string | ||
getTemplate ( ) : string | ||
getType ( ) : string | ||
getTypeId ( ) : integer | ||
issueMap ( ) : |
||
maybeEmit ( CodeBase $code_base, |
||
maybeEmit ( |
||
maybeEmitInstance ( CodeBase $code_base, |
||
maybeEmitInstance ( |
||
maybeEmitWithParameters ( CodeBase $code_base, |
||
maybeEmitWithParameters ( |
public static emit ( string $type, string $file, integer $line, variadic |
||
$type | string | The type of the issue |
$file | string | The name of the file where the issue was found |
$line | integer | The line number (start) where the issue was found |
$template_parameters | variadic |
Any template parameters required for the issue message |
Résultat | void |
public static emitInstance ( phan\IssueInstance $issue_instance ) : void | ||
$issue_instance | phan\IssueInstance | An issue instance to emit |
Résultat | void |
public static emitWithParameters ( string $type, string $file, integer $line, array $template_parameters ) : void | ||
$type | string | The type of the issue |
$file | string | The name of the file where the issue was found |
$line | integer | The line number (start) where the issue was found |
$template_parameters | array | Any template parameters required for the issue message |
Résultat | void |
public static getNameForCategory ( integer $category ) : string | ||
$category | integer | |
Résultat | string | The name of the category |
public getRemediationDifficulty ( ) : integer | ||
Résultat | integer |
public getSeverityName ( ) : string | ||
Résultat | string | A descriptive name of the severity of hte issue |
public static maybeEmit ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base within which we're operating |
$context | The context in which the node we're going to be looking at exits. | |
$issue_type | string | The type of issue to emit such as Issue::ParentlessClass |
$lineno | integer | The line number where the issue was found |
Résultat | void |
public static maybeEmit ( |
||
$code_base | The code base within which we're operating | |
$context | The context in which the node we're going to be looking at exits. | |
$issue_type | string | The type of issue to emit such as Issue::ParentlessClass |
$lineno | integer | The line number where the issue was found |
Résultat | void |
public static maybeEmitInstance ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base within which we're operating |
$context | The context in which the instance was found | |
$issue_instance | phan\IssueInstance | An issue instance to emit |
Résultat | void |
public static maybeEmitInstance ( |
||
$code_base | The code base within which we're operating | |
$context | The context in which the instance was found | |
$issue_instance | phan\IssueInstance | An issue instance to emit |
Résultat | void |
public static maybeEmitWithParameters ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base within which we're operating |
$context | The context in which the node we're going to be looking at exits. | |
$issue_type | string | The type of issue to emit such as Issue::ParentlessClass |
$lineno | integer | The line number where the issue was found |
$parameters | array | |
Résultat | void |
public static maybeEmitWithParameters ( |
||
$code_base | The code base within which we're operating | |
$context | The context in which the node we're going to be looking at exits. | |
$issue_type | string | The type of issue to emit such as Issue::ParentlessClass |
$lineno | integer | The line number where the issue was found |
$parameters | array | |
Résultat | void |