xref: /PHP-8.0/ext/intl/collator/collator.stub.php (revision 186612e4)
1<?php
2
3/** @generate-function-entries */
4
5class Collator
6{
7    public function __construct(string $locale) {}
8
9    /**
10     * @return Collator|null
11     * @alias collator_create
12     */
13    public static function create(string $locale) {}
14
15    /**
16     * @return int|false
17     * @alias collator_compare
18     */
19    public function compare(string $string1, string $string2) {}
20
21    /**
22     * @return bool
23     * @alias collator_sort
24     */
25    public function sort(array &$array, int $flags = Collator::SORT_REGULAR) {}
26
27    /**
28     * @return bool
29     * @alias collator_sort_with_sort_keys
30     */
31    public function sortWithSortKeys(array &$array) {}
32
33    /**
34     * @return bool
35     * @alias collator_asort
36     */
37    public function asort(array &$array, int $flags = Collator::SORT_REGULAR) {}
38
39    /**
40     * @return int|false
41     * @alias collator_get_attribute
42     */
43    public function getAttribute(int $attribute) {}
44
45    /**
46     * @return bool
47     * @alias collator_set_attribute
48     */
49    public function setAttribute(int $attribute, int $value) {}
50
51    /**
52     * @return int
53     * @alias collator_get_strength
54     */
55    public function getStrength() {}
56
57    /**
58     * @return bool
59     * @alias collator_set_strength
60     */
61    public function setStrength(int $strength) {}
62
63    /**
64     * @return string|false
65     * @alias collator_get_locale
66     */
67    public function getLocale(int $type) {}
68
69    /**
70     * @return int|false
71     * @alias collator_get_error_code
72     */
73    public function getErrorCode() {}
74
75    /**
76     * @return string|false
77     * @alias collator_get_error_message
78     */
79    public function getErrorMessage() {}
80
81    /**
82     * @return string|false
83     * @alias collator_get_sort_key
84     */
85    public function getSortKey(string $string) {}
86}
87