| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Webauthn\MetadataService\Statement; |
| 6 |
|
| 7 |
class BiometricAccuracyDescriptor extends AbstractDescriptor |
| 8 |
{ |
| 9 |
public function __construct( |
| 10 |
public readonly ?float $selfAttestedFRR, |
| 11 |
public readonly ?float $selfAttestedFAR, |
| 12 |
public readonly ?float $maxTemplates, |
| 13 |
?int $maxRetries = null, |
| 14 |
?int $blockSlowdown = null |
| 15 |
) { |
| 16 |
parent::__construct($maxRetries, $blockSlowdown); |
| 17 |
} |
| 18 |
|
| 19 |
public static function create( |
| 20 |
?float $selfAttestedFRR, |
| 21 |
?float $selfAttestedFAR, |
| 22 |
?float $maxTemplates, |
| 23 |
?int $maxRetries = null, |
| 24 |
?int $blockSlowdown = null |
| 25 |
): self { |
| 26 |
return new self($selfAttestedFRR, $selfAttestedFAR, $maxTemplates, $maxRetries, $blockSlowdown); |
| 27 |
} |
| 28 |
} |