Method | Description | |
---|---|---|
analyzeClass ( CodeBase $code_base, |
||
analyzeClass ( |
||
analyzeFunction ( CodeBase $code_base, |
||
analyzeFunction ( |
||
analyzeMethod ( CodeBase $code_base, |
||
analyzeMethod ( |
||
analyzeNode ( CodeBase $code_base, |
Analyze the given node in the given context after Phan has analyzed the node. | |
analyzeNode ( |
||
emitIssue ( CodeBase $code_base, |
Emit an issue if it is not suppressed | |
emitIssue ( |
Emit an issue if it is not suppressed | |
preAnalyzeNode ( CodeBase $code_base, |
Do a first-pass analysis of a node before Phan does its full analysis. This hook allows you to update types in the CodeBase before analysis happens. |
abstract public analyzeClass ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base in which the class exists |
$class | A class being analyzed | |
return | void |
abstract public analyzeClass ( |
||
$code_base | The code base in which the class exists | |
$class | A class being analyzed | |
return | void |
abstract public analyzeFunction ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base in which the function exists |
$function | A function being analyzed | |
return | void |
abstract public analyzeFunction ( |
||
$code_base | The code base in which the function exists | |
$function | A function being analyzed | |
return | void |
abstract public analyzeMethod ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base in which the method exists |
$method | A method being analyzed | |
return | void |
abstract public analyzeMethod ( |
||
$code_base | The code base in which the method exists | |
$method | A method being analyzed | |
return | void |
abstract public analyzeNode ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base in which the node exists |
$context | The context in which the node exits. This is the context inside the given node rather than the context outside of the given node | |
$node | ast\Node | The php-ast Node being analyzed. |
$parent_node | ast\Node | |
return | void |
abstract public analyzeNode ( |
||
$code_base | The code base in which the node exists | |
$context | The context in which the node exits. This is the context inside the given node rather than the context outside of the given node | |
$node | ast\Node | The php-ast Node being analyzed. |
$parent_node | ast\Node | |
return | void |
public emitIssue ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base in which the issue was found |
$context | The context in which the issue was found | |
$issue_type | string | A name for the type of issue such as 'PhanPluginMyIssue' |
$issue_message | string | The complete issue message to emit such as 'class with fqsen \NS\Name is broken in some fashion'. |
$severity | integer | A value from the set {Issue::SEVERITY_LOW, Issue::SEVERITY_NORMAL, Issue::SEVERITY_HIGH}. |
$remediation_difficulty | integer | A guess at how hard the issue will be to fix from the set {Issue:REMEDIATION_A, Issue:REMEDIATION_B, ... Issue::REMEDIATION_F} with F being the hardest. |
$issue_type_id | integer |
public emitIssue ( |
||
$code_base | The code base in which the issue was found | |
$context | The context in which the issue was found | |
$issue_type | string | A name for the type of issue such as 'PhanPluginMyIssue' |
$issue_message | string | The complete issue message to emit such as 'class with fqsen \NS\Name is broken in some fashion'. |
$severity | integer | A value from the set {Issue::SEVERITY_LOW, Issue::SEVERITY_NORMAL, Issue::SEVERITY_HIGH}. |
$remediation_difficulty | integer | A guess at how hard the issue will be to fix from the set {Issue:REMEDIATION_A, Issue:REMEDIATION_B, ... Issue::REMEDIATION_F} with F being the hardest. |
$issue_type_id | integer |
abstract public preAnalyzeNode ( CodeBase $code_base, |
||
$code_base | CodeBase | The code base in which the node exists |
$context | The context in which the node exits. This is the context inside the given node rather than the context outside of the given node | |
$node | ast\Node | The php-ast Node being analyzed. The parent node of the given node (if one exists). |
return | void |