/** * @param GithubRepo $githubRepo * @param Tag $tagValueObject * * @return GithubTag */ public function createFromValueObject(GithubRepo $githubRepo, Tag $tagValueObject) { $githubTag = new GithubTag(); $githubTag->setRepo($githubRepo); $this->mapper->map($tagValueObject, $githubTag); return $githubTag; }