Proposed enhancement - fix for #221 GitlabBuild
This commit is contained in:
parent
5b2f66565c
commit
02dff2b081
2 changed files with 14 additions and 6 deletions
|
|
@ -215,11 +215,19 @@ class ProjectBase extends Model
|
|||
/**
|
||||
* Get the value of AccessInformation / access_information.
|
||||
*
|
||||
* @param string|null $key Key of desired information
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccessInformation()
|
||||
public function getAccessInformation($key = null)
|
||||
{
|
||||
$rtn = $this->data['access_information'];
|
||||
if (is_null($key)) {
|
||||
$rtn = $this->data['access_information'];
|
||||
} else if (isset($this->data['access_information'][$key])) {
|
||||
$rtn = $this->data['access_information'][$key];
|
||||
} else {
|
||||
$rtn = null;
|
||||
}
|
||||
|
||||
return $rtn;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue