clientId = $clientId; $this->clientSecret = $clientSecret; $this->redirectUri = $redirectUri; } /** * @return string|null */ public function getClientId(): ?string { return $this->clientId; } /** * @return string|null */ public function getClientSecret(): ?string { return $this->clientSecret; } /** * @return string|null */ public function getRedirectUri(): ?string { return $this->redirectUri; } /** * @throws GoogleCredentialsException * * @return void */ public function validate(): void { if (empty($this->getClientId())) { throw new GoogleCredentialsException('Google client-id not set.'); } if (empty($this->getClientSecret())) { throw new GoogleCredentialsException('Google client secret not set.'); } } }