We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18ebb48 commit 4f10f5aCopy full SHA for 4f10f5a
src/DataStructure/Map.php
@@ -43,4 +43,10 @@ public function get(mixed $key): mixed;
43
* @return bool true if the key-value pair was removed, false otherwise
44
*/
45
public function remove(mixed $key): bool;
46
+ /**
47
+ * Returns the number of key-value mappings in the map.
48
+ *
49
+ * @return int the number of key-value mappings
50
+ */
51
+ public function size(): int;
52
}
0 commit comments