// readonly class AlfaConfig { //
// public function __construct( // public string $baseUrl, // public string $certificatePath, // public string $privateKeyPath, // public ?string $caBundlePath = null, // public ?string $clientId = null, // public ?string $clientSecret = null, // public ?string $redirectUri = null, // public ?string $signingCertificatePath = null, // public ?string $signingPrivateKeyPath = null, ) { // if (!file_exists($this->certificatePath)) { throw new \InvalidArgumentException("Certificate not found: {$this->certificatePath}"); } if (!file_exists($this->privateKeyPath)) { throw new \InvalidArgumentException("Private key not found: {$this->privateKeyPath}"); } if ($this->signingCertificatePath && !file_exists($this->signingCertificatePath)) { throw new \InvalidArgumentException("Signing certificate not found: {$this->signingCertificatePath}"); } if ($this->signingPrivateKeyPath && !file_exists($this->signingPrivateKeyPath)) { throw new \InvalidArgumentException("Signing private key not found: {$this->signingPrivateKeyPath}"); } } //
}