(self, def_dict)
return php_type
Convert a json primitive type to a suitable PHP type name.

    Overrides the default.

    Args:
      def_dict: (dict) A dictionary describing Json schema for this Property.
    Returns:
      A name suitable for use as a class in PHP.
Convert a json primitive type to a suitable PHP type name.
Convert a json primitive type to a suitable PHP type name .
def GetCodeTypeFromDictionary(self, def_dict):
    """Convert a json primitive type to a suitable PHP type name.

    Overrides the default.

    Args:
      def_dict: (dict) A dictionary describing Json schema for this Property.
    Returns:
      A name suitable for use as a class in PHP.
    """

    # Unique identifier for this schema.
    json_type = def_dict.get('type', 'string')

    # An additional regular expression or key that helps constrain the value.
    # See: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
    json_format = def_dict.get('format')

    # If we know what to do with this format type, then use native type.
    php_type = (self._SCHEMA_TYPE_TO_PHP_TYPE.get(json_format)
                or self._SCHEMA_TYPE_TO_PHP_TYPE.get(json_type, json_type))
    return php_type
def GetCodeTypeFromDictionary ( self , def_dict ) : # Unique identifier for this schema. json_type = def_dict . get ( 'type' , 'string' ) # An additional regular expression or key that helps constrain the value. # See: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23 json_format = def_dict . get ( 'format' ) # If we know what to do with this format type, then use native type. php_type = ( self . _SCHEMA_TYPE_TO_PHP_TYPE . get ( json_format ) or self . _SCHEMA_TYPE_TO_PHP_TYPE . get ( json_type , json_type ) ) return php_type