Definição
MongoDB\Model\IndexInfo
Esta classe modela informações sobre um índice. As instâncias dessa classe são retornadas atravessando um
MongoDB\Model\IndexInfoIterator
, que é retornado 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
[]
.Observação
A classe é imutável.
MongoDB\Model\IndexInfo
Tentar modificá-lo por meio da interface ArrayAccess resultará emMongoDB\Exception\BadMethodCallException
um.