= 0 || throw MetadataStatementLoadingException::create( 'The parameter "userVerificationMethod" is invalid' ); } public static function create( string $userVerificationMethod, ?CodeAccuracyDescriptor $caDesc = null, ?BiometricAccuracyDescriptor $baDesc = null, ?PatternAccuracyDescriptor $paDesc = null ): self { return new self($userVerificationMethod, $caDesc, $baDesc, $paDesc); } public function userPresence(): bool { return $this->userVerificationMethod === self::USER_VERIFY_PRESENCE_INTERNAL; } public function fingerprint(): bool { return $this->userVerificationMethod === self::USER_VERIFY_FINGERPRINT_INTERNAL; } public function passcodeInternal(): bool { return $this->userVerificationMethod === self::USER_VERIFY_PASSCODE_INTERNAL; } public function voicePrint(): bool { return $this->userVerificationMethod === self::USER_VERIFY_VOICEPRINT_INTERNAL; } public function facePrint(): bool { return $this->userVerificationMethod === self::USER_VERIFY_FACEPRINT_INTERNAL; } public function location(): bool { return $this->userVerificationMethod === self::USER_VERIFY_LOCATION_INTERNAL; } public function eyePrint(): bool { return $this->userVerificationMethod === self::USER_VERIFY_EYEPRINT_INTERNAL; } public function patternInternal(): bool { return $this->userVerificationMethod === self::USER_VERIFY_PATTERN_INTERNAL; } public function handprint(): bool { return $this->userVerificationMethod === self::USER_VERIFY_HANDPRINT_INTERNAL; } public function passcodeExternal(): bool { return $this->userVerificationMethod === self::USER_VERIFY_PASSCODE_EXTERNAL; } public function patternExternal(): bool { return $this->userVerificationMethod === self::USER_VERIFY_PATTERN_EXTERNAL; } public function none(): bool { return $this->userVerificationMethod === self::USER_VERIFY_NONE; } public function all(): bool { return $this->userVerificationMethod === self::USER_VERIFY_ALL; } }