php8.5
Home/ Manual/ driver / monitoring/ The MongoDB\Driver\Monitoring\Subscriber interface

The MongoDB\Driver\Monitoring\Subscriber interface

Base interface for event subscribers. This is used as a parameter type in the functions MongoDB\Driver\Monitoring\addSubscriber and MongoDB\Driver\Monitoring\removeSubscriber and should not be implemented directly.

Intro

Base interface for event subscribers. This is used as a parameter type in the functions MongoDB\Driver\Monitoring\addSubscriber() and MongoDB\Driver\Monitoring\removeSubscriber() and should not be implemented directly.

Interfacesynopsis

class MongoDB\Driver\Monitoring\Subscriber { }

This interface has no methods. Its only purpose is to be the base interface for all event subscribers.

Source: reference/mongodb/mongodb/driver/monitoring/subscriber.xml · from the official PHP manual (php/doc-en)