Exemplo n.º 1
0
 /**
  * @return array
  */
 public function serialize()
 {
     return ['sha' => (string) $this->sha, 'githubRepoId' => $this->githubRepoId->getId(), 'author' => $this->author->serialize(), 'committer' => $this->committer->serialize(), 'message' => $this->message];
 }
Exemplo n.º 2
0
 public function let(GithubRepoId $githubRepoId)
 {
     $githubRepoId->__toString()->willReturn(123);
     $this->beConstructedWith($githubRepoId, '0.2');
 }
Exemplo n.º 3
0
 /**
  * @return string
  */
 public function __toString()
 {
     return $this->githubRepoId->__toString() . '-' . $this->commitSha->__toString();
 }
Exemplo n.º 4
0
 /**
  * @return string
  */
 public function __toString()
 {
     return $this->githubRepoId->__toString() . '-' . $this->tagName;
 }