PHP 클래스 PHPSA\Issue

파일 보기 프로젝트 열기: ovr/phpsa

보호된 프로퍼티들

프로퍼티 타입 설명
$categories string Required. At least one category indicating the nature of the issue being reported.
$checkName string Required. A unique name representing the static analysis check that emitted this issue.
$content string Optional. A markdown snippet describing the issue, including deeper explanations and links to other resources.
$description string Required. A string explaining the issue that was detected.
$location IssueLocation Required. A Location object representing the place in the source code where the issue was discovered.
$type string Required. Must always be "issue".

공개 메소드들

메소드 설명
__construct ( string $checkName, string $description, IssueLocation $location, array $categories = [self::CATEGORY_BUG_RISK] )
getCheckName ( ) : string
getDescription ( ) : string
getLocation ( ) : IssueLocation
getType ( ) : string
toArray ( ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( string $checkName, string $description, IssueLocation $location, array $categories = [self::CATEGORY_BUG_RISK] )
$checkName string
$description string
$location IssueLocation
$categories array

getCheckName() 공개 메소드

public getCheckName ( ) : string
리턴 string

getDescription() 공개 메소드

public getDescription ( ) : string
리턴 string

getLocation() 공개 메소드

public getLocation ( ) : IssueLocation
리턴 IssueLocation

getType() 공개 메소드

public getType ( ) : string
리턴 string

toArray() 공개 메소드

public toArray ( ) : array
리턴 array

프로퍼티 상세

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

Required. At least one category indicating the nature of the issue being reported.
protected string $categories
리턴 string

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

Required. A unique name representing the static analysis check that emitted this issue.
protected string $checkName
리턴 string

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

Optional. A markdown snippet describing the issue, including deeper explanations and links to other resources.
protected string $content
리턴 string

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

Required. A string explaining the issue that was detected.
protected string $description
리턴 string

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

Required. A Location object representing the place in the source code where the issue was discovered.
protected IssueLocation,phpsa $location
리턴 IssueLocation

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

Required. Must always be "issue".
protected string $type
리턴 string