Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1925

ServerDescription::getType() should return a string

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.13.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Change ServerDescription::getType() to return a string and define string values for those constants (they are currently defined as integer values). This will be more convenient for users, since the constants' values will be meaningful on their own. This should be done similarly to the ReadPreference constants (https://www.php.net/manual/en/class.mongodb-driver-readpreference.php).

            Assignee:
            tanli.su@mongodb.com Tanli Su (Inactive)
            Reporter:
            tanli.su@mongodb.com Tanli Su (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: