/** * @param $name * * @return GithubPullRequest */ private function createPullRequestObjectFromPullRequestName($name) { $pullRequest = new GithubPullRequest(); $pullRequest->setName($name); return $pullRequest; }
/** * @Given there is :pullRequestName pullRequest on :githubRepoFullName github repo * * @param $pullRequestName * @param $githubRepoFullName * * @throws \Exception */ public function thereIsPullRequestOnGithubRepo($pullRequestName, $githubRepoFullName) { $pullRequest = new GithubPullRequest(); $pullRequest->setName($pullRequestName)->setRepo($this->getGithubRepoByFullName($githubRepoFullName)); $this->save($pullRequest); }