src/Datastructure/Graph/Tree/Heap/MinHeap.php
public function swap(int $current, int $parent): void {
        $tmp = $this->heap[$current];
        $this->heap[$current] = $this->heap[$parent];
        $this->heap[$parent] = $tmp;
    }
public function swap(int $current, int $parent): void {
        $tmp = $this->heap[$current];
        $this->heap[$current] = $this->heap[$parent];
        $this->heap[$parent] = $tmp;
    }
public function swap ( int $ current , int $ parent ) : void { $ tmp = $ this -> heap [ $ current ] ; $ this -> heap [ $ current ] = $ this -> heap [ $ parent ] ; $ this -> heap [ $ parent ] = $ tmp ; }
swaps the value at the current position with the value at the parent position

@param int $current
@param int $parent
swaps the value at the current position with the value at the parent position