| 1 | <?php |
||
| 9 | class Helper |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Convert a string to camelCase. Strings already in camelCase will not be harmed. |
||
| 14 | * |
||
| 15 | * @param string $str The input string |
||
| 16 | * @return string camelCased output string |
||
| 17 | */ |
||
| 18 | public static function camelCase($str) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Convert strings with underscores to be all lowercase before camelCase is preformed. |
||
| 33 | * |
||
| 34 | * @param string $str The input string |
||
| 35 | * @return string The output string |
||
| 36 | */ |
||
| 37 | protected static function convertToLowercase($str) |
||
| 51 | } |
||
| 52 |