public function getUserValue($userId, $key) { $defaultValue = null; if (array_key_exists($key, $this->defaults)) { $defaultValue = $this->defaults[$key]; } return $this->config->getUserValue($userId, $this->appName, $key, $defaultValue); }