Skip to content

Commit b1f4ff7

Browse files
committed
Merge pull request #525
2 parents 6e3ef10 + bd6ad38 commit b1f4ff7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

source/reference/enumeration-classes.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ Definition
2222
returned by traversing a :phpclass:`MongoDB\\Model\\CollectionInfoIterator`,
2323
which is returned by :phpmethod:`MongoDB\\Database::listCollections()`.
2424

25+
.. versionchanged:: 1.4
26+
27+
This class implements PHP's :php:`ArrayAccess <arrayaccess>` interface. This
28+
provides a mechanism for accessing index fields for which there exists no
29+
helper method. :php:`isset() <isset>` may be used to check for the existence
30+
of a field before accessing it with ``[]``.
31+
32+
.. note::
33+
34+
The :phpclass:`MongoDB\\Model\\CollectionInfo` class is immutable. Attempting
35+
to modify it via the :php:`ArrayAccess <arrayaccess>` interface will
36+
result in a :phpclass:`MongoDB\\Exception\\BadMethodCallException`.
37+
2538
Methods
2639
~~~~~~~
2740

@@ -70,6 +83,19 @@ Definition
7083
returned by traversing a :phpclass:`MongoDB\\Model\\DatabaseInfoIterator`,
7184
which is returned by :phpmethod:`MongoDB\\Client::listDatabases()`.
7285

86+
.. versionchanged:: 1.4
87+
88+
This class implements PHP's :php:`ArrayAccess <arrayaccess>` interface. This
89+
provides a mechanism for accessing index fields for which there exists no
90+
helper method. :php:`isset() <isset>` may be used to check for the existence
91+
of a field before accessing it with ``[]``.
92+
93+
.. note::
94+
95+
The :phpclass:`MongoDB\\Model\\DatabaseInfo` class is immutable. Attempting
96+
to modify it via the :php:`ArrayAccess <arrayaccess>` interface will
97+
result in a :phpclass:`MongoDB\\Exception\\BadMethodCallException`.
98+
7399
Methods
74100
~~~~~~~
75101

0 commit comments

Comments
 (0)