1<?php
2
3/** @generate-class-entries */
4
5class IntlBreakIterator implements IteratorAggregate
6{
7    /** @tentative-return-type */
8    public static function createCharacterInstance(?string $locale = null): ?IntlBreakIterator {}
9
10    /** @tentative-return-type */
11    public static function createCodePointInstance(): IntlCodePointBreakIterator {}
12
13    /** @tentative-return-type */
14    public static function createLineInstance(?string $locale = null): ?IntlBreakIterator {}
15
16    /** @tentative-return-type */
17    public static function createSentenceInstance(?string $locale = null): ?IntlBreakIterator {}
18
19    /** @tentative-return-type */
20    public static function createTitleInstance(?string $locale = null): ?IntlBreakIterator {}
21
22    /** @tentative-return-type */
23    public static function createWordInstance(?string $locale = null): ?IntlBreakIterator {}
24
25    private function __construct() {}
26
27    /** @tentative-return-type */
28    public function current(): int {}
29
30    /** @tentative-return-type */
31    public function first(): int {}
32
33    /** @tentative-return-type */
34    public function following(int $offset): int {}
35
36    /** @tentative-return-type */
37    public function getErrorCode(): int {}
38
39    /** @tentative-return-type */
40    public function getErrorMessage(): string {}
41
42    /** @tentative-return-type */
43    public function getLocale(int $type): string|false {}
44
45    /** @tentative-return-type */
46    public function getPartsIterator(string $type = IntlPartsIterator::KEY_SEQUENTIAL): IntlPartsIterator {}
47
48    /** @tentative-return-type */
49    public function getText(): ?string {}
50
51    /** @tentative-return-type */
52    public function isBoundary(int $offset): bool {}
53
54    /** @tentative-return-type */
55    public function last(): int {}
56
57    /** @tentative-return-type */
58    public function next(?int $offset = null): int {}
59
60    /** @tentative-return-type */
61    public function preceding(int $offset): int {}
62
63    /** @tentative-return-type */
64    public function previous(): int {}
65
66    /** @tentative-return-type */
67    public function setText(string $text): ?bool {} // TODO return false instead of null in case of failure
68
69    public function getIterator(): Iterator {}
70}
71
72class IntlRuleBasedBreakIterator extends IntlBreakIterator
73{
74    public function __construct(string $rules, bool $compiled = false) {}
75
76    /** @tentative-return-type */
77    public function getBinaryRules(): string|false {}
78
79    /** @tentative-return-type */
80    public function getRules(): string|false {}
81
82    /** @tentative-return-type */
83    public function getRuleStatus(): int {}
84
85    /** @tentative-return-type */
86    public function getRuleStatusVec(): array|false {}
87}
88
89class IntlCodePointBreakIterator extends IntlBreakIterator
90{
91    /** @tentative-return-type */
92    public function getLastCodePoint(): int {}
93}
94