src/Collection/RoadMap.php
public function prepend(SourceRoad $road) {
        if (!in_array($road->getName(), $this->priorityQueue)) {
            $this->put($road);
            array_unshift($this->priorityQueue, $road->getName());
        }
    }
public function prepend(SourceRoad $road) {
        if (!in_array($road->getName(), $this->priorityQueue)) {
            $this->put($road);
            array_unshift($this->priorityQueue, $road->getName());
        }
    }
public function prepend ( SourceRoad $ road ) { if ( ! in_array ( $ road -> getName ( ) , $ this -> priorityQueue ) ) { $ this -> put ( $ road ) ; array_unshift ( $ this -> priorityQueue , $ road -> getName ( ) ) ; } }
Prepend a SourceRoad to this roadMap.

@param SourceRoad $road
Prepend a SourceRoad to this roadMap .