1 | <?php |
||
26 | class GlSpellCheckerSentence |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $text; |
||
33 | |||
34 | /** |
||
35 | * @var GlSpellCheckerError[] $errors |
||
36 | */ |
||
37 | private $errors = []; |
||
38 | |||
39 | /** |
||
40 | * @param $text |
||
41 | */ |
||
42 | public function __construct($text) |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getText() |
||
54 | |||
55 | /** |
||
56 | * @param GlSpellCheckerError $newerror |
||
57 | */ |
||
58 | public function addError(GlSpellCheckerError $newerror) |
||
62 | |||
63 | /** |
||
64 | * @return GlSpellCheckerError[] |
||
65 | */ |
||
66 | public function getErrors() |
||
70 | |||
71 | /** |
||
72 | * @return GlSpellCheckerError[] |
||
73 | */ |
||
74 | public function mergeErrors() { |
||
99 | |||
100 | /** |
||
101 | * |
||
102 | */ |
||
103 | private function sortedErrorsByOffset() { |
||
114 | } |
||
115 |