1<?php 2 3/** @generate-class-entries */ 4 5/** @not-serializable */ 6class Spoofchecker 7{ 8 /** 9 * @var int 10 * @cvalue USPOOF_SINGLE_SCRIPT_CONFUSABLE 11 */ 12 public const SINGLE_SCRIPT_CONFUSABLE = UNKNOWN; 13 /** 14 * @var int 15 * @cvalue USPOOF_MIXED_SCRIPT_CONFUSABLE 16 */ 17 public const MIXED_SCRIPT_CONFUSABLE = UNKNOWN; 18 /** 19 * @var int 20 * @cvalue USPOOF_WHOLE_SCRIPT_CONFUSABLE 21 */ 22 public const WHOLE_SCRIPT_CONFUSABLE = UNKNOWN; 23 /** 24 * @var int 25 * @cvalue USPOOF_ANY_CASE 26 */ 27 public const ANY_CASE = UNKNOWN; 28 /** 29 * @var int 30 * @cvalue USPOOF_SINGLE_SCRIPT 31 */ 32 public const SINGLE_SCRIPT = UNKNOWN; 33 /** 34 * @var int 35 * @cvalue USPOOF_INVISIBLE 36 */ 37 public const INVISIBLE = UNKNOWN; 38 /** 39 * @var int 40 * @cvalue USPOOF_CHAR_LIMIT 41 */ 42 public const CHAR_LIMIT = UNKNOWN; 43#if U_ICU_VERSION_MAJOR_NUM >= 58 44 /** 45 * @var int 46 * @cvalue USPOOF_ASCII 47 */ 48 public const ASCII = UNKNOWN; 49 /** 50 * @var int 51 * @cvalue USPOOF_HIGHLY_RESTRICTIVE 52 */ 53 public const HIGHLY_RESTRICTIVE = UNKNOWN; 54 /** 55 * @var int 56 * @cvalue USPOOF_MODERATELY_RESTRICTIVE 57 */ 58 public const MODERATELY_RESTRICTIVE = UNKNOWN; 59 /** 60 * @var int 61 * @cvalue USPOOF_MINIMALLY_RESTRICTIVE 62 */ 63 public const MINIMALLY_RESTRICTIVE = UNKNOWN; 64 /** 65 * @var int 66 * @cvalue USPOOF_UNRESTRICTIVE 67 */ 68 public const UNRESTRICTIVE = UNKNOWN; 69 /** 70 * @var int 71 * @cvalue USPOOF_SINGLE_SCRIPT_RESTRICTIVE 72 */ 73 public const SINGLE_SCRIPT_RESTRICTIVE = UNKNOWN; 74#endif 75 76 public function __construct() {} 77 78 /** 79 * @param int $errorCode 80 * @tentative-return-type 81 */ 82 public function isSuspicious(string $string, &$errorCode = null): bool {} 83 84 /** 85 * @param int $errorCode 86 * @tentative-return-type 87 */ 88 public function areConfusable(string $string1, string $string2, &$errorCode = null): bool {} 89 90 /** @tentative-return-type */ 91 public function setAllowedLocales(string $locales): void {} 92 93 /** @tentative-return-type */ 94 public function setChecks(int $checks): void {} 95 96#if U_ICU_VERSION_MAJOR_NUM >= 58 97 /** @tentative-return-type */ 98 public function setRestrictionLevel(int $level): void {} 99#endif 100} 101