1: <?php
2: namespace Worldline\Connect\Sdk\Webhooks;
3:
4: use Exception;
5:
6: /**
7: * Class SecretKeyNotAvailableException
8: *
9: * @package Worldline\Connect\Sdk\Webhooks
10: */
11: class SecretKeyNotAvailableException extends SignatureValidationException
12: {
13: /**
14: * @var string
15: */
16: private string $keyId;
17:
18: /**
19: * @param string $keyId
20: * @param string|null $message
21: * @param Exception|null $previous
22: */
23: public function __construct(string $keyId, ?string $message = null, ?Exception $previous = null)
24: {
25: parent::__construct($message, $previous);
26: $this->keyId = $keyId;
27: }
28:
29: /**
30: * @return string
31: */
32: public function getKeyId(): string
33: {
34: return $this->keyId;
35: }
36: }
37: