SnakeCaseToCamelCaseNameConverter.php
public function denormalize($input)
    {
        $lcPropertyName = lcfirst($input);
        $snakeCasedName = '';

        $len = strlen($lcPropertyName);
        for ($i = 0; $i < $len; ++$i) {
            if (ctype_upper($lcPropertyName[$i])) {
                $snakeCasedName .= '_' . strtolower($lcPropertyName[$i]);
            } else {
                $snakeCasedName .= strtolower($lcPropertyName[$i]);
            }
        }

        return $snakeCasedName;
    }
public function denormalize($input)
    {
        $lcPropertyName = lcfirst($input);
        $snakeCasedName = '';

        $len = strlen($lcPropertyName);
        for ($i = 0; $i < $len; ++$i) {
            if (ctype_upper($lcPropertyName[$i])) {
                $snakeCasedName .= '_' . strtolower($lcPropertyName[$i]);
            } else {
                $snakeCasedName .= strtolower($lcPropertyName[$i]);
            }
        }

        return $snakeCasedName;
    }
public function denormalize ( $ input ) { $ lcPropertyName = lcfirst ( $ input ) ; $ snakeCasedName = '' ; $ len = strlen ( $ lcPropertyName ) ; for ( $ i = 0 ; $ i < $ len ; ++ $ i ) { if ( ctype_upper ( $ lcPropertyName [ $ i ] ) ) { $ snakeCasedName .= '_' . strtolower ( $ lcPropertyName [ $ i ] ) ; } else { $ snakeCasedName .= strtolower ( $ lcPropertyName [ $ i ] ) ; } } return $ snakeCasedName ; }
Converts a string like 'myInput' to 'my_input'

@param $input

@return string
Converts a string like myInput to my_input