@@ -35,75 +35,65 @@ class Text_LanguageDetect_Parser extends Text_LanguageDetect
35
35
/**
36
36
* The piece of text being parsed
37
37
*
38
- * @access private
39
- * @var string
38
+ * @var string
40
39
*/
41
- var $ _string ;
40
+ protected $ _string ;
42
41
43
42
/**
44
43
* Stores the trigram frequencies of the sample
45
44
*
46
- * @access private
47
- * @var string
45
+ * @var string
48
46
*/
49
- var $ _trigrams = array ();
47
+ protected $ _trigrams = array ();
50
48
51
49
/**
52
50
* Stores the trigram ranks of the sample
53
51
*
54
- * @access private
55
- * @var array
52
+ * @var array
56
53
*/
57
- var $ _trigram_ranks = array ();
54
+ protected $ _trigram_ranks = array ();
58
55
59
56
/**
60
57
* Stores the unicode blocks of the sample
61
58
*
62
- * @access private
63
- * @var array
59
+ * @var array
64
60
*/
65
- var $ _unicode_blocks = array ();
61
+ protected $ _unicode_blocks = array ();
66
62
67
63
/**
68
64
* Whether the parser should compile the unicode ranges
69
65
*
70
- * @access private
71
- * @var bool
66
+ * @var bool
72
67
*/
73
- var $ _compile_unicode = false ;
68
+ protected $ _compile_unicode = false ;
74
69
75
70
/**
76
71
* Whether the parser should compile trigrams
77
72
*
78
- * @access private
79
- * @var bool
73
+ * @var bool
80
74
*/
81
- var $ _compile_trigram = false ;
75
+ protected $ _compile_trigram = false ;
82
76
83
77
/**
84
78
* Whether the trigram parser should pad the beginning of the string
85
79
*
86
- * @access private
87
- * @var bool
80
+ * @var bool
88
81
*/
89
- var $ _trigram_pad_start = false ;
82
+ protected $ _trigram_pad_start = false ;
90
83
91
84
/**
92
85
* Whether the unicode parser should skip non-alphabetical ascii chars
93
86
*
94
- * @access private
95
- * @var bool
87
+ * @var bool
96
88
*/
97
- var $ _unicode_skip_symbols = true ;
89
+ protected $ _unicode_skip_symbols = true ;
98
90
99
91
/**
100
92
* Constructor
101
93
*
102
94
* @param string $string string to be parsed
103
- *
104
- * @access private
105
95
*/
106
- function __construct ($ string )
96
+ public function __construct ($ string )
107
97
{
108
98
$ this ->_string = $ string ;
109
99
}
@@ -114,9 +104,8 @@ function __construct($string)
114
104
* @param string $string string to be parsed
115
105
*
116
106
* @return void
117
- * @access private
118
107
*/
119
- function Text_LanguageDetect_Parser ($ string )
108
+ public function Text_LanguageDetect_Parser ($ string )
120
109
{
121
110
self ::__construct ($ string );
122
111
}
0 commit comments