MongoDB\Model\CollectionInfo::getName()
On this page
Definition
Return Values
The collection name. This corresponds to the name
field returned in the
listCollections
command reply.
Examples
$info = new CollectionInfo(['name' => 'foo']); echo $info->getName();
The output would then resemble:
foo
See Also
listCollections command reference in the MongoDB manual