public function swap(int $index1, int $index2) : void
    {
        if ($index1 !== $index2) {
            $value = $this[$index1];
            $this[$index1] = $this[$index2];
            $this[$index2] = $value;
        }
    }
public function swap(int $index1, int $index2) : void
    {
        if ($index1 !== $index2) {
            $value = $this[$index1];
            $this[$index1] = $this[$index2];
            $this[$index2] = $value;
        }
    }
public function swap ( int $ index1 , int $ index2 ) : void { if ( $ index1 !== $ index2 ) { $ value = $ this [ $ index1 ] ; $ this [ $ index1 ] = $ this [ $ index2 ] ; $ this [ $ index2 ] = $ value ; } }
Swaps two entries in this FixedArray.

@param int $index1 The index of the first entry.
@param int $index2 The index of the second entry.

@return void
Swaps two entries in this FixedArray .