authenticatorGetInfo = $authenticatorGetInfo ?? AuthenticatorGetInfo::create($attestationTypes); } /** * @param Version[] $upv * @param string[] $authenticationAlgorithms * @param string[] $publicKeyAlgAndEncodings * @param string[] $attestationTypes * @param VerificationMethodANDCombinations[] $userVerificationDetails * @param string[] $matcherProtection * @param string[] $tcDisplay * @param string[] $attestationRootCertificates * @param string[] $attestationCertificateKeyIdentifiers * @param string[] $keyProtection * @param string[] $attachmentHint * @param ExtensionDescriptor[] $supportedExtensions * @param DisplayPNGCharacteristicsDescriptor[] $tcDisplayPNGCharacteristics * @param array $alternativeDescriptions */ public static function create( string $description, int $authenticatorVersion, string $protocolFamily, int $schema, array $upv, array $authenticationAlgorithms, array $publicKeyAlgAndEncodings, array $attestationTypes, array $userVerificationDetails, array $matcherProtection, array $tcDisplay, array $attestationRootCertificates, array $alternativeDescriptions = [], ?string $legalHeader = null, ?string $aaid = null, ?string $aaguid = null, array $attestationCertificateKeyIdentifiers = [], array $keyProtection = [], ?bool $isKeyRestricted = null, ?bool $isFreshUserVerificationRequired = null, ?int $cryptoStrength = null, array $attachmentHint = [], ?string $tcDisplayContentType = null, array $tcDisplayPNGCharacteristics = [], ?string $icon = null, array $supportedExtensions = [], ?AuthenticatorGetInfo $authenticatorGetInfo = null, ): self { return new self( $description, $authenticatorVersion, $protocolFamily, $schema, $upv, $authenticationAlgorithms, $publicKeyAlgAndEncodings, $attestationTypes, $userVerificationDetails, $matcherProtection, $tcDisplay, $attestationRootCertificates, AlternativeDescriptions::create($alternativeDescriptions), $legalHeader, $aaid, $aaguid, $attestationCertificateKeyIdentifiers, $keyProtection, $isKeyRestricted, $isFreshUserVerificationRequired, $cryptoStrength, $attachmentHint, $tcDisplayContentType, $tcDisplayPNGCharacteristics, $icon, $supportedExtensions, $authenticatorGetInfo, ); } }