PHP Класс PHPSA\Issue

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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