public function build() {

		if ( empty( $this->parts ) ) {
			return '';
		}

		$query = '';

		foreach ( $this->parts as $part) {

			if ($part instanceof Builder) {
				$query .= "($part)";
			} elseif ( $sql = (string) $part ) {
				$query .= "$part ";
			}
		}

		return $query;
	}
public function build() {

		if ( empty( $this->parts ) ) {
			return '';
		}

		$query = '';

		foreach ( $this->parts as $part) {

			if ($part instanceof Builder) {
				$query .= "($part)";
			} elseif ( $sql = (string) $part ) {
				$query .= "$part ";
			}
		}

		return $query;
	}
public function build ( ) { if ( empty ( $ this -> parts ) ) { return '' ; } $ query = '' ; foreach ( $ this -> parts as $ part ) { if ( $ part instanceof Builder ) { $ query .= "($part)" ; } elseif ( $ sql = ( string ) $ part ) { $ query .= "$part " ; } } return $ query ; }
Build a sql statement.

@since 1.0

@return string
Build a sql statement .