PHP 클래스 bouiboui\Tissue\GithubIssue

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

공개 메소드들

메소드 설명
__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