src/Google/AdsApi/AdManager/Util/v201805/StatementBuilder.php
private function buildQuery()
    {
        $this->validateQuery();

        $statement = "";
        if ($this->select !== null) {
            $statement .= sprintf("%s %s ", self::SELECT, $this->select);
        }
        if ($this->from !== null) {
            $statement .= sprintf("%s %s ", self::FROM, $this->from);
        }
        if ($this->where !== null) {
            $statement .= sprintf("%s %s ", self::WHERE, $this->where);
        }
        if ($this->orderBy !== null) {
            $statement .= sprintf("%s %s ", self::ORDER_BY, $this->orderBy);
        }
        if ($this->limit !== null) {
            $statement .= sprintf("%s %s ", self::LIMIT, $this->limit);
        }
        if ($this->offset !== null) {
            $statement .= sprintf("%s %s ", self::OFFSET, $this->offset);
        }

        return trim($statement);
    }
private function buildQuery()
    {
        $this->validateQuery();

        $statement = "";
        if ($this->select !== null) {
            $statement .= sprintf("%s %s ", self::SELECT, $this->select);
        }
        if ($this->from !== null) {
            $statement .= sprintf("%s %s ", self::FROM, $this->from);
        }
        if ($this->where !== null) {
            $statement .= sprintf("%s %s ", self::WHERE, $this->where);
        }
        if ($this->orderBy !== null) {
            $statement .= sprintf("%s %s ", self::ORDER_BY, $this->orderBy);
        }
        if ($this->limit !== null) {
            $statement .= sprintf("%s %s ", self::LIMIT, $this->limit);
        }
        if ($this->offset !== null) {
            $statement .= sprintf("%s %s ", self::OFFSET, $this->offset);
        }

        return trim($statement);
    }
private function buildQuery ( ) { $ this -> validateQuery ( ) ; $ statement = "" ; if ( $ this -> select !== null ) { $ statement .= sprintf ( "%s %s " , self :: SELECT , $ this -> select ) ; } if ( $ this -> from !== null ) { $ statement .= sprintf ( "%s %s " , self :: FROM , $ this -> from ) ; } if ( $ this -> where !== null ) { $ statement .= sprintf ( "%s %s " , self :: WHERE , $ this -> where ) ; } if ( $ this -> orderBy !== null ) { $ statement .= sprintf ( "%s %s " , self :: ORDER_BY , $ this -> orderBy ) ; } if ( $ this -> limit !== null ) { $ statement .= sprintf ( "%s %s " , self :: LIMIT , $ this -> limit ) ; } if ( $ this -> offset !== null ) { $ statement .= sprintf ( "%s %s " , self :: OFFSET , $ this -> offset ) ; } return trim ( $ statement ) ; }
Builds the query from the clauses.

@return string the query
Builds the query from the clauses .