Definição
MongoDB\Model\CollectionInfoEsta classe modela informações sobre uma collection. As instâncias desta classe são retornadas atravessando um
MongoDB\Model\CollectionInfoIterator, que é retornado porMongoDB\Database::listCollections().
Alterado na versão 1.4:
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
The MongoDB\Model\CollectionInfo class is immutable. Attempting to modify it via the ArrayAccess interface will result in a MongoDB\Exception\BadMethodCallException.