The MongoDB\Driver\Monitoring\TopologyChangedEvent class

- « MongoDB\Driver\Monitoring\ServerHeartbeatSucceededEvent::isAwaited

- MongoDB\Driver\Monitoring\TopologyChangedEvent::getNewDescription »

- PHP Manual
- MongoDB\Driver\Monitoring
- The MongoDB\Driver\Monitoring\TopologyChangedEvent class

# The MongoDB\Driver\Monitoring\TopologyChangedEvent class

(mongodb >=1.13.0)

## Introduction

The MongoDB\Driver\Monitoring\TopologyChangedEvent class encapsulates information about a changed topology description.

## Class synopsis

final class MongoDB\Driver\Monitoring\TopologyChangedEvent {
/* Methods */
final public getNewDescription(): MongoDB\Driver\TopologyDescription
final public getPreviousDescription(): MongoDB\Driver\TopologyDescription
final public getTopologyId(): MongoDB\BSON\ObjectId
}

## Table of Contents

- MongoDB\Driver\Monitoring\TopologyChangedEvent::getNewDescription — Returns the new description for the topology
- MongoDB\Driver\Monitoring\TopologyChangedEvent::getPreviousDescription — Returns the previous description for the topology
- MongoDB\Driver\Monitoring\TopologyChangedEvent::getTopologyId — Returns the topology ID