1<?php
2
3/** @generate-class-entries */
4
5/** @not-serializable */
6class Spoofchecker
7{
8    /** @cvalue USPOOF_SINGLE_SCRIPT_CONFUSABLE */
9    public const int SINGLE_SCRIPT_CONFUSABLE = UNKNOWN;
10    /** @cvalue USPOOF_MIXED_SCRIPT_CONFUSABLE */
11    public const int MIXED_SCRIPT_CONFUSABLE = UNKNOWN;
12    /** @cvalue USPOOF_WHOLE_SCRIPT_CONFUSABLE */
13    public const int WHOLE_SCRIPT_CONFUSABLE = UNKNOWN;
14    /** @cvalue USPOOF_ANY_CASE */
15    public const int ANY_CASE = UNKNOWN;
16    /** @cvalue USPOOF_SINGLE_SCRIPT */
17    public const int SINGLE_SCRIPT = UNKNOWN;
18    /** @cvalue USPOOF_INVISIBLE */
19    public const int INVISIBLE = UNKNOWN;
20    /** @cvalue USPOOF_CHAR_LIMIT */
21    public const int CHAR_LIMIT = UNKNOWN;
22#if U_ICU_VERSION_MAJOR_NUM >= 58
23    /** @cvalue USPOOF_ASCII */
24    public const int ASCII = UNKNOWN;
25    /** @cvalue USPOOF_HIGHLY_RESTRICTIVE */
26    public const int HIGHLY_RESTRICTIVE = UNKNOWN;
27    /** @cvalue USPOOF_MODERATELY_RESTRICTIVE */
28    public const int MODERATELY_RESTRICTIVE = UNKNOWN;
29    /** @cvalue USPOOF_MINIMALLY_RESTRICTIVE */
30    public const int MINIMALLY_RESTRICTIVE = UNKNOWN;
31    /** @cvalue USPOOF_UNRESTRICTIVE */
32    public const int UNRESTRICTIVE = UNKNOWN;
33    /** @cvalue USPOOF_SINGLE_SCRIPT_RESTRICTIVE */
34    public const int SINGLE_SCRIPT_RESTRICTIVE = UNKNOWN;
35    /** @cvalue USPOOF_MIXED_NUMBERS */
36    public const int MIXED_NUMBERS = UNKNOWN;
37#endif
38#if U_ICU_VERSION_MAJOR_NUM >= 62
39    /** @cvalue USPOOF_HIDDEN_OVERLAY */
40    public const int HIDDEN_OVERLAY = UNKNOWN;
41#endif
42
43    public function __construct() {}
44
45    /**
46     * @param int $errorCode
47     * @tentative-return-type
48     */
49    public function isSuspicious(string $string, &$errorCode = null): bool {}
50
51    /**
52     * @param int $errorCode
53     * @tentative-return-type
54     */
55    public function areConfusable(string $string1, string $string2, &$errorCode = null): bool {}
56
57    /** @tentative-return-type */
58    public function setAllowedLocales(string $locales): void {}
59
60    /** @tentative-return-type */
61    public function setChecks(int $checks): void {}
62
63#if U_ICU_VERSION_MAJOR_NUM >= 58
64    /** @tentative-return-type */
65    public function setRestrictionLevel(int $level): void {}
66#endif
67}
68