Skip to content

Commit 15c85ca

Browse files
webmaster777m1guelpf
authored andcommitted
implemented Environments::show()
1 parent e133ff3 commit 15c85ca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Gitlab/Api/Environments.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,14 @@ public function stop($project_id, $environment_id)
5555
{
5656
return $this->post($this->getProjectPath($project_id, 'environments/'.$this->encodePath($environment_id).'/stop'));
5757
}
58+
59+
/**
60+
* @param int $project_id
61+
* @param string $environment_id
62+
* @return mixed
63+
*/
64+
public function show($project_id, $environment_id)
65+
{
66+
return $this->get($this->getProjectPath($project_id, 'environments/' . $this->encodePath($environment_id)));
67+
}
5868
}

0 commit comments

Comments
 (0)