1 | <?php |
||
24 | class Inflector |
||
25 | { |
||
26 | use SingletonTrait; |
||
27 | use HasCacheTrait; |
||
28 | use HasDictionaryTrait; |
||
29 | use MagicMethodsTrait; |
||
30 | use InflectionCamelizeTrait; |
||
31 | use InflectionClassifyTrait; |
||
32 | use InflectionHyphenizeTrait; |
||
33 | use InflectionOrdinalizeTrait; |
||
34 | use InflectionPluralizeTrait; |
||
35 | use InflectionSingularizeTrait; |
||
36 | use InflectionTableizeTrait; |
||
37 | use InflectionUnclasifyTrait; |
||
38 | use InflectionUnderscoreTrait; |
||
39 | |||
40 | /** |
||
41 | * @param $name |
||
42 | * @return bool |
||
43 | */ |
||
44 | 19 | public function hasInflection($name) |
|
49 | |||
50 | /** |
||
51 | * @param $name |
||
52 | * @param $word |
||
53 | * @return mixed |
||
54 | */ |
||
55 | 19 | public function doInflection($name, $word) |
|
64 | |||
65 | /** |
||
66 | * @param $name |
||
67 | * @return string |
||
68 | */ |
||
69 | 19 | protected function inflectionMethod($name) |
|
73 | } |
||
74 |