Definición
MongoDB\Model\IndexInfoEsta clase modela información sobre un índice. Las instancias de esta clase son devueltas al recorrer un
MongoDB\Model\IndexInfoIterator, el cual es devuelto porMongoDB\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
[].Nota
The
MongoDB\Model\IndexInfoclass is immutable. Attempting to modify it via the ArrayAccess interface will result in aMongoDB\Exception\BadMethodCallException.