public function putAll(IMap $map) { $items = $map->toArray(); foreach ($items as $key => $value) { $this->put($key, $value); } }