You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the latest version of the page or use interactive features, visit the live page.
MongoDB\Model\IndexInfo Class
Definition
MongoDB\Model\IndexInfoThis class models information about an index. Instances of this class are returned by traversing a
MongoDB\Model\IndexInfoIterator, which is returned byMongoDB\Collection::listIndexes().This class implements PHP's ArrayAccess interface. This provides a mechanism for accessing index fields for which there exists no helper method. isset() may be used to check for the existence of a field before accessing it with
[].Note
The
MongoDB\Model\IndexInfoclass is immutable. Attempting to modify it via the ArrayAccess interface will result in aMongoDB\Exception\BadMethodCallException.