src/Collection/RoadMap.php
public function append($road) {
        if (!in_array($road->getName(), $this->priorityQueue)) {
            $this->put($road);
            array_push($this->priorityQueue, $road->getName());
        }
        return $this;
    }
public function append($road) {
        if (!in_array($road->getName(), $this->priorityQueue)) {
            $this->put($road);
            array_push($this->priorityQueue, $road->getName());
        }
        return $this;
    }
public function append ( $ road ) { if ( ! in_array ( $ road -> getName ( ) , $ this -> priorityQueue ) ) { $ this -> put ( $ road ) ; array_push ( $ this -> priorityQueue , $ road -> getName ( ) ) ; } return $ this ; }
Append a given resource road into this map.

@param SourceRoad $road
@return RoadMap
Append a given resource road into this map .