- Reference >
- Enumeration Classes >
- MongoDB\Model\CollectionInfo::isCapped()
MongoDB\Model\CollectionInfo::isCapped()
Deprecated since version 1.9.
On this page
Definition
-
MongoDB\Model\CollectionInfo::isCapped Return whether the collection is a capped collection.
Return Values
A boolean indicating whether the collection is a capped collection.
This method is deprecated in favor of using
MongoDB\Model\CollectionInfo::getOptions() and accessing the
capped key.
Examples
The output would then resemble:
bool(true)
See Also
MongoDB\Model\CollectionInfo::getCappedMax()MongoDB\Model\CollectionInfo::getCappedSize()- Capped Collections in the MongoDB manual
- listCollections command reference in the MongoDB manual