/** * @param Suite $suite */ protected function setHipChatConfigs(Suite $suite) { $this->hipChatConfigs['access_token'] = ''; $this->hipChatConfigs['room_name'] = ''; if (isset($suite->getNotificationSettings()['hipchat'])) { $this->hipChatConfigs = $suite->getNotificationSettings()['hipchat']; if (isset($this->hipChatConfigs['room_name']) == false && isset($this->getNotificationTypeData()->default_room)) { $this->hipChatConfigs['room_name'] = $this->getNotificationTypeData()->default_room; } } if (isset($this->getNotificationTypeData()->access_token)) { $this->hipChatConfigs['access_token'] = $this->getNotificationTypeData()->access_token; } }