Skip to content

Commit f06d446

Browse files
committed
Add real visibility #2
1 parent dc47ea9 commit f06d446

File tree

1 file changed

+18
-29
lines changed

1 file changed

+18
-29
lines changed

Text/LanguageDetect/Parser.php

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -35,75 +35,65 @@ class Text_LanguageDetect_Parser extends Text_LanguageDetect
3535
/**
3636
* The piece of text being parsed
3737
*
38-
* @access private
39-
* @var string
38+
* @var string
4039
*/
41-
var $_string;
40+
protected $_string;
4241

4342
/**
4443
* Stores the trigram frequencies of the sample
4544
*
46-
* @access private
47-
* @var string
45+
* @var string
4846
*/
49-
var $_trigrams = array();
47+
protected $_trigrams = array();
5048

5149
/**
5250
* Stores the trigram ranks of the sample
5351
*
54-
* @access private
55-
* @var array
52+
* @var array
5653
*/
57-
var $_trigram_ranks = array();
54+
protected $_trigram_ranks = array();
5855

5956
/**
6057
* Stores the unicode blocks of the sample
6158
*
62-
* @access private
63-
* @var array
59+
* @var array
6460
*/
65-
var $_unicode_blocks = array();
61+
protected $_unicode_blocks = array();
6662

6763
/**
6864
* Whether the parser should compile the unicode ranges
6965
*
70-
* @access private
71-
* @var bool
66+
* @var bool
7267
*/
73-
var $_compile_unicode = false;
68+
protected $_compile_unicode = false;
7469

7570
/**
7671
* Whether the parser should compile trigrams
7772
*
78-
* @access private
79-
* @var bool
73+
* @var bool
8074
*/
81-
var $_compile_trigram = false;
75+
protected $_compile_trigram = false;
8276

8377
/**
8478
* Whether the trigram parser should pad the beginning of the string
8579
*
86-
* @access private
87-
* @var bool
80+
* @var bool
8881
*/
89-
var $_trigram_pad_start = false;
82+
protected $_trigram_pad_start = false;
9083

9184
/**
9285
* Whether the unicode parser should skip non-alphabetical ascii chars
9386
*
94-
* @access private
95-
* @var bool
87+
* @var bool
9688
*/
97-
var $_unicode_skip_symbols = true;
89+
protected $_unicode_skip_symbols = true;
9890

9991
/**
10092
* Constructor
10193
*
10294
* @param string $string string to be parsed
103-
*
104-
* @access private
10595
*/
106-
function __construct($string)
96+
public function __construct($string)
10797
{
10898
$this->_string = $string;
10999
}
@@ -114,9 +104,8 @@ function __construct($string)
114104
* @param string $string string to be parsed
115105
*
116106
* @return void
117-
* @access private
118107
*/
119-
function Text_LanguageDetect_Parser($string)
108+
public function Text_LanguageDetect_Parser($string)
120109
{
121110
self::__construct($string);
122111
}

0 commit comments

Comments
 (0)