/** * @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]; }
public function let(GithubRepoId $githubRepoId) { $githubRepoId->__toString()->willReturn(123); $this->beConstructedWith($githubRepoId, '0.2'); }
/** * @return string */ public function __toString() { return $this->githubRepoId->__toString() . '-' . $this->commitSha->__toString(); }
/** * @return string */ public function __toString() { return $this->githubRepoId->__toString() . '-' . $this->tagName; }