src/Map.php
public function reversed(): Map
    {
        $reversed = new self();
        $reversed->pairs = array_reverse($this->pairs);

        return $reversed;
    }
public function reversed(): Map
    {
        $reversed = new self();
        $reversed->pairs = array_reverse($this->pairs);

        return $reversed;
    }
public function reversed ( ) : Map { $ reversed = new self ( ) ; $ reversed -> pairs = array_reverse ( $ this -> pairs ) ; return $ reversed ; }
Returns a reversed copy of the map.

@return Map
Returns a reversed copy of the map .