public function setConnection($connection)
	{
		$this->connection = $connection;
		$this->setSyntax($this->detectSyntax());

		return $this;
	}
public function setConnection($connection)
	{
		$this->connection = $connection;
		$this->setSyntax($this->detectSyntax());

		return $this;
	}
public function setConnection ( $ connection ) { $ this -> connection = $ connection ; $ this -> setSyntax ( $ this -> detectSyntax ( ) ) ; return $ this ; }
Sets the connection

This method is public because it can be helpful when testing.
You can ignore the constructor and just set the connection of
your choice.  We assume the person setting the connection
has done their checks to make sure it is valid.

@param   object $connection the connection to set
@return  $this
@since   2.0.0
Sets the connection