/** * {@inheritdoc} */ public function equals(MapInterface $map) : bool { if (!$map->keys()->equals($this->keys())) { return false; } return $map->values()->equals($this->values()); }