Add an enum for BSON type names

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • PHP Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The encryptedFieldsMap requires setting bsonType of each field path. In order to prevent any typo in this definition, the PHPLIB should provide a list of existing BSON types

      An enum can be used as it allows typing.
      We can also add an interface BSONType with a method getBSONTypeName() that other classes could implement (like Doctrine Type class).

            Assignee:
            Jérôme Tamarelle
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: