PHP Classes

File: vendor/mongodb/mongodb/docs/reference/method/MongoDBModelIndexInfo-getNamespace.txt

Recommend this page to a friend!
  Classes of LAGGOUNE Walid   MongoDB Queue PHP Query Execute   vendor/mongodb/mongodb/docs/reference/method/MongoDBModelIndexInfo-getNamespace.txt   Download  
File: vendor/mongodb/mongodb/docs/reference/method/MongoDBModelIndexInfo-getNamespace.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: MongoDB Queue PHP Query Execute
Query and execute multiple queries using MongoDB
Author: By
Last change:
Date: 4 years ago
Size: 950 bytes
 

Contents

Class file image Download
========================================= MongoDB\\Model\\IndexInfo::getNamespace() ========================================= .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\Model\\IndexInfo::getNamespace() Return the index namespace, which is the namespace of the collection containing the index. .. code-block:: php function getNamespace(): string Return Values ------------- The index namespace. Examples -------- .. code-block:: php <?php $info = new IndexInfo([ 'ns' => 'foo.bar', ]); echo $info->getNamespace(); The output would then resemble:: foo.bar See Also -------- - :phpmethod:`MongoDB\\Collection::createIndex()` - :phpmethod:`MongoDB\\Collection::getNamespace()` - :manual:`listIndexes </reference/command/listIndexes>` command reference in the MongoDB manual