diff --git a/PHPCI/Model/Build.php b/PHPCI/Model/Build.php index f17fcc74..d61fe832 100644 --- a/PHPCI/Model/Build.php +++ b/PHPCI/Model/Build.php @@ -68,4 +68,19 @@ class Build extends BuildBase { return ($this->getStatus() === self::STATUS_SUCCESS); } + + public function getAccessInformation($key = null) + { + $data = unserialize($this->data['access_information']); + + if (is_null($key)) { + $rtn = $data; + } else if (isset($data[$key])) { + $rtn = $data[$key]; + } else { + $rtn = null; + } + + return $rtn; + } }