(self, prop)
Strip primitive types since PHP doesn't support primitive type hints.
Strip primitive types since PHP doesn't support primitive type hints.
Strip primitive types since PHP doesn t support primitive type hints .
def _SetTypeHint(self, prop):
    """Strip primitive types since PHP doesn't support primitive type hints."""
    code_type = prop.code_type
    if code_type and code_type.lower() in PhpLanguageModel.PHP_TYPES:
      prop.values['typeHint'] = ''
      prop.values['typeHintOld'] = ''
    else:
      prop.values['typeHintOld'] = ('%s_%s' %
                                    (self._api.values['owner'].title(),
                                     code_type))
      prop.values['typeHint'] = ('%s_Service_%s_%s' %
                                 (self._api.values['owner'].title(),
                                  self._api.values['className'], code_type))
def _SetTypeHint ( self , prop ) : code_type = prop . code_type if code_type and code_type . lower ( ) in PhpLanguageModel . PHP_TYPES : prop . values [ 'typeHint' ] = '' prop . values [ 'typeHintOld' ] = '' else : prop . values [ 'typeHintOld' ] = ( '%s_%s' % ( self . _api . values [ 'owner' ] . title ( ) , code_type ) ) prop . values [ 'typeHint' ] = ( '%s_Service_%s_%s' % ( self . _api . values [ 'owner' ] . title ( ) , self . _api . values [ 'className' ] , code_type ) )