Add typed readonly properties for value objects and events

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 2.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • PHP Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      In mongodb/mongo-php-driver#1543 for PHPC-2255, andreas.braun@mongodb.com suggested replacing getter methods on event objects with typed, readonly properties.

      In this first step, this can be done for the following classes:

      • MongoDB\Driver\ReadConcern
      • MongoDB\Driver\WriteConcern
      • MongoDB\Driver\WriteError
      • MongoDB\Driver\WriteResult
      • MongoDB\Driver\Exception\CommandException
      • MongoDB\Driver\Exception\WriteException
      • MongoDB\Driver\Monitoring\CommandFailedEvent
      • MongoDB\Driver\Monitoring\CommandStartedEvent
      • MongoDB\Driver\Monitoring\CommandSucceededEvent
      • MongoDB\Driver\Monitoring\ServerChangedEvent
      • MongoDB\Driver\Monitoring\ServerClosedEvent
      • MongoDB\Driver\Monitoring\ServerHeartbeatFailedEvent
      • MongoDB\Driver\Monitoring\ServerHeartbeatStartedEvent
      • MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent
      • MongoDB\Driver\Monitoring\ServerOpeningEvent
      • MongoDB\Driver\Monitoring\TopologyChangedEvent
      • MongoDB\Driver\Monitoring\TopologyClosedEvent
      • MongoDB\Driver\Monitoring\TopologyOpeningEvent

            Assignee:
            Andreas Braun
            Reporter:
            Jeremy Mikola (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: