websiteUrl = $websiteUrl; $this->authenticationUrl = $authenticationUrl; $this->registrationUrl = $registrationUrl; $this->sessionSupport = $sessionSupport; } public function getWebsiteUrl(): ?string { return $this->websiteUrl; } public function getAuthenticationUrl(): ?string { return $this->authenticationUrl; } public function getRegistrationUrl(): ?string { return $this->registrationUrl; } public function hasSessionSupport(): bool { return $this->sessionSupport; } public static function fromArray(array $array = []): Configuration { $websiteUrl = $array['websiteUrl'] ?? null; $authenticationUrl = $array['authenticationUrl'] ?? null; $registrationUrl = $array['registrationUrl'] ?? null; $sessionSupport = $array['supportSessions'] === true; return new Configuration($websiteUrl, $authenticationUrl, $registrationUrl, $sessionSupport); } }