1 | <?php |
||
5 | class Inflector |
||
6 | { |
||
7 | /** |
||
8 | * Convert word into underscore format (e.g. some_name_here). |
||
9 | * |
||
10 | * @param string $word |
||
11 | * @return string |
||
12 | */ |
||
13 | public function underscore($word) |
||
24 | |||
25 | /** |
||
26 | * Convert word into dasherized format (e.g. some-name-here). |
||
27 | * |
||
28 | * @param string $word |
||
29 | * @return string |
||
30 | */ |
||
31 | public function dasherize($word) |
||
35 | |||
36 | /** |
||
37 | * Convert word into camelized format (e.g. someNameHere). |
||
38 | * |
||
39 | * @param string $word |
||
40 | * @return string |
||
41 | */ |
||
42 | public function camelize($word) |
||
46 | |||
47 | /** |
||
48 | * Convert word into studly caps format (e.g. SomeNameHere). |
||
49 | * |
||
50 | * @param string $word |
||
51 | * @return string |
||
52 | */ |
||
53 | public function studlify($word) |
||
57 | |||
58 | /** |
||
59 | * Convert word into wordified format (e.g. Some Name Here). |
||
60 | * |
||
61 | * @param string $word |
||
62 | * @return string |
||
63 | */ |
||
64 | public function wordify($word) |
||
68 | } |
||
69 |