companyName); return $this->odataBaseUrl . "/Company('" . $company . "')/" . $entitySet; } /** * @return array List of missing setting descriptions (empty = valid) */ public function validateConfiguration(): array { $missing = []; if ($this->basicUser === null && $this->authMode === HelpdeskSettingsGateway::AUTH_MODE_BASIC) { $missing[] = 'BC Basic Auth User'; } if ($this->basicPassword === null && $this->authMode === HelpdeskSettingsGateway::AUTH_MODE_BASIC) { $missing[] = 'BC Basic Auth Password'; } if ($this->authMode === HelpdeskSettingsGateway::AUTH_MODE_OAUTH2) { if ($this->oauthClientId === null) { $missing[] = 'BC OAuth2 Client ID'; } if ($this->oauthClientSecret === null) { $missing[] = 'BC OAuth2 Client Secret'; } if ($this->oauthTokenEndpoint === null) { $missing[] = 'BC OAuth2 Token Endpoint'; } } return $missing; } public function isConfigured(): bool { return $this->validateConfiguration() === []; } }