@@ -61,8 +61,8 @@ class Syllable
61
61
* @var string|null
62
62
*/
63
63
private static $ encoding = 'UTF-8 ' ;
64
- private static $ directoryCache = null ;
65
- private static $ directoryLanguage = null ;
64
+ private static $ cacheDir = null ;
65
+ private static $ languageDir = null ;
66
66
private $ excludes = [];
67
67
private $ includes = [];
68
68
@@ -79,13 +79,13 @@ class Syllable
79
79
*/
80
80
public function __construct ($ language = 'en ' , $ hyphen = null )
81
81
{
82
- if (!self ::$ directoryCache ) {
83
- self ::$ directoryCache = __DIR__ .'/../cache ' ;
82
+ if (!self ::$ cacheDir ) {
83
+ self ::$ cacheDir = __DIR__ .'/../cache ' ;
84
84
}
85
- $ this ->setCache (new Json (self ::$ directoryCache ));
85
+ $ this ->setCache (new Json (self ::$ cacheDir ));
86
86
87
- if (!self ::$ directoryLanguage ) {
88
- self ::$ directoryLanguage = __DIR__ .'/../languages ' ;
87
+ if (!self ::$ languageDir ) {
88
+ self ::$ languageDir = __DIR__ .'/../languages ' ;
89
89
}
90
90
91
91
$ this ->setLanguage ($ language );
@@ -99,9 +99,9 @@ public function __construct($language = 'en', $hyphen = null)
99
99
*
100
100
* @param string $dir
101
101
*/
102
- public static function setDirectoryCache ($ dir )
102
+ public static function setCacheDir ($ dir )
103
103
{
104
- self ::$ directoryCache = $ dir ;
104
+ self ::$ cacheDir = $ dir ;
105
105
}
106
106
107
107
/**
@@ -121,9 +121,9 @@ public static function setEncoding($encoding = null)
121
121
*
122
122
* @param string $dir
123
123
*/
124
- public static function setDirectoryLanguage ($ dir )
124
+ public static function setLanguageDir ($ dir )
125
125
{
126
- self ::$ directoryLanguage = $ dir ;
126
+ self ::$ languageDir = $ dir ;
127
127
}
128
128
129
129
/**
@@ -134,7 +134,7 @@ public static function setDirectoryLanguage($dir)
134
134
public function setLanguage ($ language )
135
135
{
136
136
$ this ->language = $ language ;
137
- $ this ->setSource (new File ($ language , self ::$ directoryLanguage ));
137
+ $ this ->setSource (new File ($ language , self ::$ languageDir ));
138
138
}
139
139
140
140
/**
0 commit comments