|
|
@@ -761,7 +761,8 @@ interface CollectionInterface extends Iterator, JsonSerializable
|
|
|
public function toList();
|
|
|
|
|
|
/**
|
|
|
- * Convert a result set into JSON.
|
|
|
+ * Returns the data that can be converted to JSON. This returns the same data
|
|
|
+ * as `toArray()` which contains only unique keys.
|
|
|
*
|
|
|
* Part of JsonSerializable interface.
|
|
|
*
|
|
|
@@ -1117,7 +1118,7 @@ interface CollectionInterface extends Iterator, JsonSerializable
|
|
|
public function count();
|
|
|
|
|
|
/**
|
|
|
- * Returns the number of unique keys in this iterator. This is, the number of
|
|
|
+ * Returns the number of unique keys in this iterator. This is the same as the number of
|
|
|
* elements the collection will contain after calling `toArray()`
|
|
|
*
|
|
|
* This method comes with a number of caveats. Please refer to `CollectionInterface::count()`
|