PHP 클래스 Phan\Issue

파일 보기 프로젝트 열기: etsy/phan 1 사용 예제들

공개 메소드들

메소드 설명
__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 $template_parameters ) : void
emitInstance ( phan\IssueInstance $issue_instance ) : void
emitWithParameters ( string $type, string $file, integer $line, array $template_parameters ) : void
fromType ( string $type ) : Issue return Issue
getCategory ( ) : integer
getNameForCategory ( integer $category ) : string
getRemediationDifficulty ( ) : integer
getSeverity ( ) : integer
getSeverityName ( ) : string
getTemplate ( ) : string
getType ( ) : string
getTypeId ( ) : integer
issueMap ( ) : Issue[]
maybeEmit ( CodeBase $code_base, Context $context, string $issue_type, integer $lineno, $parameters ) : void
maybeEmit ( CodeBase $code_base, Context $context, string $issue_type, integer $lineno, $parameters ) : void
maybeEmitInstance ( CodeBase $code_base, Context $context, phan\IssueInstance $issue_instance ) : void
maybeEmitInstance ( CodeBase $code_base, Context $context, phan\IssueInstance $issue_instance ) : void
maybeEmitWithParameters ( CodeBase $code_base, Context $context, string $issue_type, integer $lineno, array $parameters ) : void
maybeEmitWithParameters ( CodeBase $code_base, Context $context, string $issue_type, integer $lineno, array $parameters ) : void

메소드 상세

__construct() 공개 메소드

public __construct ( string $type, integer $category, integer $severity, string $template, integer $remediation_difficulty, integer $type_id )
$type string
$category integer
$severity integer
$template string
$remediation_difficulty integer
$type_id integer (unique integer id for $type)

__invoke() 공개 메소드

public __invoke ( string $file, integer $line, array $template_parameters = [] ) : phan\IssueInstance
$file string
$line integer
$template_parameters array
리턴 phan\IssueInstance

emit() 공개 정적인 메소드

public static emit ( string $type, string $file, integer $line, variadic $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 variadic Any template parameters required for the issue message
리턴 void

emitInstance() 공개 정적인 메소드

public static emitInstance ( phan\IssueInstance $issue_instance ) : void
$issue_instance phan\IssueInstance An issue instance to emit
리턴 void

emitWithParameters() 공개 정적인 메소드

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
리턴 void

fromType() 공개 정적인 메소드

return Issue
public static fromType ( string $type ) : Issue
$type string
리턴 Issue

getCategory() 공개 메소드

public getCategory ( ) : integer
리턴 integer

getNameForCategory() 공개 정적인 메소드

public static getNameForCategory ( integer $category ) : string
$category integer
리턴 string The name of the category

getRemediationDifficulty() 공개 메소드

getSeverity() 공개 메소드

public getSeverity ( ) : integer
리턴 integer

getSeverityName() 공개 메소드

public getSeverityName ( ) : string
리턴 string A descriptive name of the severity of hte issue

getTemplate() 공개 메소드

public getTemplate ( ) : string
리턴 string

getType() 공개 메소드

public getType ( ) : string
리턴 string

getTypeId() 공개 메소드

public getTypeId ( ) : integer
리턴 integer (Unique integer code corresponding to getType())

issueMap() 공개 정적인 메소드

public static issueMap ( ) : Issue[]
리턴 Issue[]

maybeEmit() 공개 정적인 메소드

public static maybeEmit ( CodeBase $code_base, Context $context, string $issue_type, integer $lineno, $parameters ) : void
$code_base CodeBase The code base within which we're operating
$context Phan\Language\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
리턴 void

maybeEmit() 공개 정적인 메소드

public static maybeEmit ( CodeBase $code_base, Context $context, string $issue_type, integer $lineno, $parameters ) : void
$code_base CodeBase The code base within which we're operating
$context Phan\Language\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
리턴 void

maybeEmitInstance() 공개 정적인 메소드

public static maybeEmitInstance ( CodeBase $code_base, Context $context, phan\IssueInstance $issue_instance ) : void
$code_base CodeBase The code base within which we're operating
$context Phan\Language\Context The context in which the instance was found
$issue_instance phan\IssueInstance An issue instance to emit
리턴 void

maybeEmitInstance() 공개 정적인 메소드

public static maybeEmitInstance ( CodeBase $code_base, Context $context, phan\IssueInstance $issue_instance ) : void
$code_base CodeBase The code base within which we're operating
$context Phan\Language\Context The context in which the instance was found
$issue_instance phan\IssueInstance An issue instance to emit
리턴 void

maybeEmitWithParameters() 공개 정적인 메소드

public static maybeEmitWithParameters ( CodeBase $code_base, Context $context, string $issue_type, integer $lineno, array $parameters ) : void
$code_base CodeBase The code base within which we're operating
$context Phan\Language\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
리턴 void

maybeEmitWithParameters() 공개 정적인 메소드

public static maybeEmitWithParameters ( CodeBase $code_base, Context $context, string $issue_type, integer $lineno, array $parameters ) : void
$code_base CodeBase The code base within which we're operating
$context Phan\Language\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
리턴 void