php8.5
Home/ Manual/ monitoring / commandstartedevent/ MongoDB\Driver\Monitoring\CommandStartedEvent::getCommand

MongoDB\Driver\Monitoring\CommandStartedEvent::getCommand

PHP function Edit on GitHub ✎

(mongodb >=1.3.0)

Returns the command document

Description

MongoDB\Driver\Monitoring\CommandStartedEvent::getCommand(): object

The reply document will be converted from BSON to PHP using the default deserialization rules (e.g. BSON documents will be converted to stdClass).

Parameters Parameters

Return Values

Returns the command document as a stdClass object.

Errors/Exceptions

See Also

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