php8.5
Home/ Manual/ driver / topologydescription/ MongoDB\Driver\TopologyDescription::getType

MongoDB\Driver\TopologyDescription::getType

PHP function Edit on GitHub ✎

(mongodb >=1.13.0)

Returns a string denoting the type of this topology

Description

MongoDB\Driver\TopologyDescription::getType(): string

Returns a string denoting the type of this topology. The value will correlate with a MongoDB\Driver\TopologyDescription constant.

Parameters Parameters

Return Values

Returns a string denoting the type of this topology.

Errors/Exceptions

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