src/watoki/collections/Map.php
public function remove($key) {
        $value = $this->elements[$this->hash($key)];
        unset($this->elements[$this->hash($key)]);
        $this->fire(new MapRemoveEvent($key, $value));
        return $value;
    }
public function remove($key) {
        $value = $this->elements[$this->hash($key)];
        unset($this->elements[$this->hash($key)]);
        $this->fire(new MapRemoveEvent($key, $value));
        return $value;
    }
public function remove ( $ key ) { $ value = $ this -> elements [ $ this -> hash ( $ key ) ] ; unset ( $ this -> elements [ $ this -> hash ( $ key ) ] ) ; $ this -> fire ( new MapRemoveEvent ( $ key , $ value ) ) ; return $ value ; }
Removes element with given key.

@param mixed $key
@return mixed The value of the removed key
Removes element with given key .