public function setQuery(string $sql, $binds = null, bool $setEscape = true)
	{
		$this->originalQueryString = $sql;

		if (! is_null($binds))
		{
			if (! is_array($binds))
			{
				$binds = [$binds];
			}

			if ($setEscape)
			{
				array_walk($binds, function (&$item) {
					$item = [
						$item,
						true,
					];
				});
			}
			$this->binds = $binds;
		}

		return $this;
	}
public function setQuery(string $sql, $binds = null, bool $setEscape = true)
	{
		$this->originalQueryString = $sql;

		if (! is_null($binds))
		{
			if (! is_array($binds))
			{
				$binds = [$binds];
			}

			if ($setEscape)
			{
				array_walk($binds, function (&$item) {
					$item = [
						$item,
						true,
					];
				});
			}
			$this->binds = $binds;
		}

		return $this;
	}
public function setQuery ( string $ sql , $ binds = null , bool $ setEscape = true ) { $ this -> originalQueryString = $ sql ; if ( ! is_null ( $ binds ) ) { if ( ! is_array ( $ binds ) ) { $ binds = [ $ binds ] ; } if ( $ setEscape ) { array_walk ( $ binds , function ( & $ item ) { $ item = [ $ item , true , ] ; } ) ; } $ this -> binds = $ binds ; } return $ this ; }
Sets the raw query string to use for this statement.

@param string  $sql
@param mixed   $binds
@param boolean $setEscape

@return $this
Sets the raw query string to use for this statement .