File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,19 @@ Definition
22
22
returned by traversing a :phpclass:`MongoDB\\Model\\CollectionInfoIterator`,
23
23
which is returned by :phpmethod:`MongoDB\\Database::listCollections()`.
24
24
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
+
25
38
Methods
26
39
~~~~~~~
27
40
@@ -70,6 +83,19 @@ Definition
70
83
returned by traversing a :phpclass:`MongoDB\\Model\\DatabaseInfoIterator`,
71
84
which is returned by :phpmethod:`MongoDB\\Client::listDatabases()`.
72
85
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
+
73
99
Methods
74
100
~~~~~~~
75
101
You can’t perform that action at this time.
0 commit comments