public function swapPrefix(string $orig, string $swap)
	{
		$sql = empty($this->finalQueryString) ? $this->originalQueryString : $this->finalQueryString;

		$this->finalQueryString = preg_replace('/(\W)' . $orig . '(\S+?)/', '\\1' . $swap . '\\2', $sql);

		return $this;
	}
public function swapPrefix(string $orig, string $swap)
	{
		$sql = empty($this->finalQueryString) ? $this->originalQueryString : $this->finalQueryString;

		$this->finalQueryString = preg_replace('/(\W)' . $orig . '(\S+?)/', '\\1' . $swap . '\\2', $sql);

		return $this;
	}
public function swapPrefix ( string $ orig , string $ swap ) { $ sql = empty ( $ this -> finalQueryString ) ? $ this -> originalQueryString : $ this -> finalQueryString ; $ this -> finalQueryString = preg_replace ( '/(\W)' . $ orig . '(\S+?)/' , '\\1' . $ swap . '\\2' , $ sql ) ; return $ this ; }
Swaps out one table prefix for a new one.

@param string $orig
@param string $swap

@return $this
Swaps out one table prefix for a new one .