MongoDB\Model\DatabaseInfo::getName()
On this page
Definition
Return Values
The database name.
Examples
$info = new DatabaseInfo(['name' => 'foo']); echo $info->getName();
The output would then resemble:
foo
See Also
listDatabases command reference in the MongoDB manual