예제 #1
0
 /**
  * GitHubIssue constructor.
  *
  * @param GitHubManager $github
  * @param \App\Library\GitHub\Repository $repository
  * @param integer $id
  */
 public function __construct(GitHubManager $github, Repository $repository, $id)
 {
     parent::__construct($github);
     $this->repository = $repository;
     $this->find($repository, $id);
 }
예제 #2
0
 /**
  * GitHubComment constructor.
  *
  * @param GitHubManager                        $github
  * @param \app\Library\GitHub\Issue            $issue
  * @param                                      $id
  */
 public function __construct(GitHubManager $github, Issue $issue, $id)
 {
     parent::__construct($github);
     $this->find($issue, $id);
 }
예제 #3
0
 /**
  * GitHubRepository constructor.
  *
  * @param GitHubManager $github
  * @param               $repoName
  * @param string        $gitHubUser
  * @param bool          $org
  */
 public function __construct(GitHubManager $github, $repoName, $gitHubUser = "******", $org = false)
 {
     parent::__construct($github);
     $this->find($repoName, $gitHubUser, $org);
 }