for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MadWizard\WebAuthn\Exception;
class UntrustedException extends VerificationException
{
/**
* @var string|null
*/
private $reason;
public function getReason(): ?string
return $this->reason;
}
public static function createWithReason(?string $reason): self
$e = new self($reason === null ? 'Not trusted' : sprintf('Not trusted: %s', $reason));
$e->reason = $reason;
return $e;