1313 *
1414 * The Inflector transforms words. This class is based on Joomla String package
1515 *
16- * @since {DEPLOY_VERSION}
16+ * @since 2.0
1717 */
1818class StringInflector
1919{
2020 /**
2121 * The singleton instance.
2222 *
2323 * @var StringInflector
24- * @since {DEPLOY_VERSION}
24+ * @since 2.0
2525 */
2626 private static $ instance ;
2727
2828 /**
2929 * The inflector rules for singularisation, pluralisation and countability.
3030 *
3131 * @var array
32- * @since {DEPLOY_VERSION}
32+ * @since 2.0
3333 */
3434 private $ rules = array (
3535 'singular ' => array (
@@ -76,14 +76,14 @@ class StringInflector
7676 * The array is in the form [singular => plural]
7777 *
7878 * @var array
79- * @since {DEPLOY_VERSION}
79+ * @since 2.0
8080 */
8181 private $ cache = array ();
8282
8383 /**
8484 * Protected constructor.
8585 *
86- * @since {DEPLOY_VERSION}
86+ * @since 2.0
8787 */
8888 protected function __construct ()
8989 {
@@ -122,7 +122,7 @@ protected function __construct()
122122 *
123123 * @return void
124124 *
125- * @since {DEPLOY_VERSION}
125+ * @since 2.0
126126 * @throws \InvalidArgumentException
127127 */
128128 private function addRule ($ data , $ ruleType )
@@ -151,7 +151,7 @@ private function addRule($data, $ruleType)
151151 *
152152 * @return mixed The cached inflection or false if none found.
153153 *
154- * @since {DEPLOY_VERSION}
154+ * @since 2.0
155155 */
156156 private function getCachedPlural ($ singular )
157157 {
@@ -173,7 +173,7 @@ private function getCachedPlural($singular)
173173 *
174174 * @return mixed The cached inflection or false if none found.
175175 *
176- * @since {DEPLOY_VERSION}
176+ * @since 2.0
177177 */
178178 private function getCachedSingular ($ plural )
179179 {
@@ -193,7 +193,7 @@ private function getCachedSingular($plural)
193193 *
194194 * @return mixed An inflected string, or false if no rule could be applied.
195195 *
196- * @since {DEPLOY_VERSION}
196+ * @since 2.0
197197 */
198198 private function matchRegexRule ($ word , $ ruleType )
199199 {
@@ -220,7 +220,7 @@ private function matchRegexRule($word, $ruleType)
220220 *
221221 * @return void
222222 *
223- * @since {DEPLOY_VERSION}
223+ * @since 2.0
224224 */
225225 private function setCache ($ singular , $ plural = null )
226226 {
@@ -245,7 +245,7 @@ private function setCache($singular, $plural = null)
245245 *
246246 * @return static Returns this object to support chaining.
247247 *
248- * @since {DEPLOY_VERSION}
248+ * @since 2.0
249249 */
250250 public function addCountableRule ($ data )
251251 {
@@ -262,7 +262,7 @@ public function addCountableRule($data)
262262 *
263263 * @return static Returns this object to support chaining.
264264 *
265- * @since {DEPLOY_VERSION}
265+ * @since 2.0
266266 */
267267 public function addWord ($ singular , $ plural =null )
268268 {
@@ -278,7 +278,7 @@ public function addWord($singular, $plural =null)
278278 *
279279 * @return static Returns this object to support chaining.
280280 *
281- * @since {DEPLOY_VERSION}
281+ * @since 2.0
282282 */
283283 public function addPluraliseRule ($ data )
284284 {
@@ -294,7 +294,7 @@ public function addPluraliseRule($data)
294294 *
295295 * @return static Returns this object to support chaining.
296296 *
297- * @since {DEPLOY_VERSION}
297+ * @since 2.0
298298 */
299299 public function addSingulariseRule ($ data )
300300 {
@@ -311,7 +311,7 @@ public function addSingulariseRule($data)
311311 *
312312 * @return static
313313 *
314- * @since {DEPLOY_VERSION}
314+ * @since 2.0
315315 */
316316 public static function getInstance ($ new = false )
317317 {
@@ -334,7 +334,7 @@ public static function getInstance($new = false)
334334 *
335335 * @return boolean True if word is countable, false otherwise.
336336 *
337- * @since {DEPLOY_VERSION}
337+ * @since 2.0
338338 */
339339 public function isCountable ($ word )
340340 {
@@ -348,7 +348,7 @@ public function isCountable($word)
348348 *
349349 * @return boolean True if word is plural, false if not.
350350 *
351- * @since {DEPLOY_VERSION}
351+ * @since 2.0
352352 */
353353 public function isPlural ($ word )
354354 {
@@ -371,7 +371,7 @@ public function isPlural($word)
371371 *
372372 * @return boolean True if word is singular, false if not.
373373 *
374- * @since {DEPLOY_VERSION}
374+ * @since 2.0
375375 */
376376 public function isSingular ($ word )
377377 {
@@ -394,7 +394,7 @@ public function isSingular($word)
394394 *
395395 * @return mixed An inflected string, or false if no rule could be applied.
396396 *
397- * @since {DEPLOY_VERSION}
397+ * @since 2.0
398398 */
399399 public function toPlural ($ word )
400400 {
@@ -432,7 +432,7 @@ public function toPlural($word)
432432 *
433433 * @return mixed An inflected string, or false if no rule could be applied.
434434 *
435- * @since {DEPLOY_VERSION}
435+ * @since 2.0
436436 */
437437 public function toSingular ($ word )
438438 {
0 commit comments