PHP Класс bouiboui\Tissue\GithubIssue

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $message = null, integer $code = null, integer $severity = null, string $path = null, integer $lineno = null, string $trace = null ) GithubIssue constructor.
commit ( $yourUsername, $yourPassword, $targetRepoAuthor, $targetRepoName ) : array Actually creates the issue on Github, returns an array with the issue's number and URL.

Приватные методы

Метод Описание
formatBody ( array $bodyContents ) : string Formats the issue's body
formatPath ( $path ) : string Formats the issue's path
formatTable ( $code, $severity ) : string Formats the issue's table
formatTitle ( $path, $lineno, $message ) : string Formats the issue's title

Описание методов

__construct() публичный Метод

Internally formats the Github issue title and message
public __construct ( string $message = null, integer $code = null, integer $severity = null, string $path = null, integer $lineno = null, string $trace = null )
$message string
$code integer
$severity integer
$path string
$lineno integer
$trace string

commit() публичный Метод

Actually creates the issue on Github, returns an array with the issue's number and URL.
public commit ( $yourUsername, $yourPassword, $targetRepoAuthor, $targetRepoName ) : array
$yourUsername
$yourPassword
$targetRepoAuthor
$targetRepoName
Результат array