/** * 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); }
/** * 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); }
/** * 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); }