Change scope of private inflector methods to protected.
This commit is contained in:
@@ -7,14 +7,14 @@ class Inflector {
|
|||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $singular_cache = array();
|
protected static $singular_cache = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The words that have been converted to plural.
|
* The words that have been converted to plural.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $plural_cache = array();
|
protected static $plural_cache = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Plural word forms.
|
* Plural word forms.
|
||||||
@@ -171,7 +171,7 @@ class Inflector {
|
|||||||
* @param array $source
|
* @param array $source
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private static function inflect($value, $cache, $irregular, $source)
|
protected static function inflect($value, $cache, $irregular, $source)
|
||||||
{
|
{
|
||||||
if (array_key_exists($value, $cache))
|
if (array_key_exists($value, $cache))
|
||||||
{
|
{
|
||||||
@@ -202,4 +202,4 @@ class Inflector {
|
|||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user