PHP Classes

File: vendor/mongodb/mongodb/docs/reference/method/MongoDBModelCollectionInfo-getOptions.txt

Recommend this page to a friend!
  Classes of walid laggoune   MongoDB Queue PHP Query Execute   vendor/mongodb/mongodb/docs/reference/method/MongoDBModelCollectionInfo-getOptions.txt   Download  
File: vendor/mongodb/mongodb/docs/reference/method/MongoDBModelCollectionInfo-getOptions.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: 1,179 bytes
 

Contents

Class file image Download
============================================ MongoDB\\Model\\CollectionInfo::getOptions() ============================================ .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\Model\\CollectionInfo::getOptions() Return the collection options. This correlates with the options for :phpmethod:`MongoDB\\Database::createCollection()`, but may include additional fields set by the server. .. code-block:: php function getOptions(): array Return Values ------------- The collection options. Examples -------- .. code-block:: php <?php $info = new CollectionInfo([ 'name' => 'foo', 'options' => [ 'capped' => true, 'size' => 1048576, ] ]); var_dump($info->getOptions()); The output would then resemble:: array(2) { ["capped"]=> bool(true) ["size"]=> int(1048576) } See Also -------- - :phpmethod:`MongoDB\\Database::createCollection()` - :manual:`listCollections </reference/command/listCollections>` command reference in the MongoDB manual