Fixing getAccessInformation()

This commit is contained in:
Dan Cryer 2014-02-26 15:18:46 +00:00
parent 4d5f4b44b7
commit ac0bac111a

View file

@ -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;
}
}