client = $client; $this->redirectUri = $redirectUri; $this->state = $state; $this->responseType = $responseType; $this->scopes = $scopes; } public function getClient(): ClientEntity { return $this->client; } public function getRedirectUri(): string { return $this->redirectUri; } public function getState(): ?string { return $this->state; } public function getResponseType(): string { return $this->responseType; } /** * @return \api\components\OAuth2\Entities\ScopeEntity[] */ public function getScopes(): array { return $this->scopes ?? []; } }