(self, method, resource)
return ''.join(words[:1] + [w.capitalize() for w in words[1:]])
Convert a wire format name into a suitable PHP variable name.
Convert a wire format name into a suitable PHP variable name.
Convert a wire format name into a suitable PHP variable name .
def _ToMethodName(self, method, resource):
    """Convert a wire format name into a suitable PHP variable name."""
    s = method['wireName']
    if resource and (s.lower() in PhpLanguageModel.PHP_KEYWORDS):
      s += resource['className']
    # Ensure dashes don't show up in method names
    words = s.split('-')
    return ''.join(words[:1] + [w.capitalize() for w in words[1:]])
def _ToMethodName ( self , method , resource ) : s = method [ 'wireName' ] if resource and ( s . lower ( ) in PhpLanguageModel . PHP_KEYWORDS ) : s += resource [ 'className' ] # Ensure dashes don't show up in method names words = s . split ( '-' ) return '' . join ( words [ : 1 ] + [ w . capitalize ( ) for w in words [ 1 : ] ] )