Beispiel #1
0
 /**
  * @param GithubRepo $githubRepo
  * @param            $sha
  *
  * @return GithubCommit
  */
 private function createCommitObjectFromSha(GithubRepo $githubRepo, $sha)
 {
     $commit = new GithubCommit();
     $commit->setGithubRepo($githubRepo);
     $commit->setSha($sha);
     return $commit;
 }
 /**
  * @param GithubRepo $githubRepo
  * @param Commit     $commitValueObject
  *
  * @return GithubCommit
  */
 public function createFromValueObject(GithubRepo $githubRepo, Commit $commitValueObject)
 {
     $githubCommit = new GithubCommit();
     $githubCommit->setGithubRepo($githubRepo);
     $this->mapper->map($commitValueObject, $githubCommit);
     return $githubCommit;
 }