public static function formatKeyCaseAccordingToReponseFormat($key)
    {
        $format = static::getResponseCaseType();

        if ($format == static::CAMEL_CASE) {
            $key = camel_case($key);
        } else {
            $key = snake_case($key);
        }

        return $key;
    }
public static function formatKeyCaseAccordingToReponseFormat($key)
    {
        $format = static::getResponseCaseType();

        if ($format == static::CAMEL_CASE) {
            $key = camel_case($key);
        } else {
            $key = snake_case($key);
        }

        return $key;
    }
public static function formatKeyCaseAccordingToReponseFormat ( $ key ) { $ format = static :: getResponseCaseType ( ) ; if ( $ format == static :: CAMEL_CASE ) { $ key = camel_case ( $ key ) ; } else { $ key = snake_case ( $ key ) ; } return $ key ; }
Format the provided key string into the required case response format

@param string $key
@return string
Format the provided key string into the required case response format