src/Map.php
public function set($key, $value)
    {
        $hash = $this->key_to_hash($key);
        $this->array[$hash] = $value;
        return $this;
    }
public function set($key, $value)
    {
        $hash = $this->key_to_hash($key);
        $this->array[$hash] = $value;
        return $this;
    }
public function set ( $ key , $ value ) { $ hash = $ this -> key_to_hash ( $ key ) ; $ this -> array [ $ hash ] = $ value ; return $ this ; }
Set a key and its corresponding value into the map.

This is the object method equivalent of the magic $map[$key] = 'foo'.

@param mixed $key
@param mixed $value
@return $this
@api
Set a key and its corresponding value into the map .