public function build(): string
    {
        if (count($this->parameters) === 0) {
            return '';
        }

        $queryString = '';
        foreach ($this->parameters as $name => $value) {
            $queryString .= $this->buildQuery($name, $value);
        }

        return substr($queryString, 1);
    }
public function build(): string
    {
        if (count($this->parameters) === 0) {
            return '';
        }

        $queryString = '';
        foreach ($this->parameters as $name => $value) {
            $queryString .= $this->buildQuery($name, $value);
        }

        return substr($queryString, 1);
    }
public function build ( ) : string { if ( count ( $ this -> parameters ) === 0 ) { return '' ; } $ queryString = '' ; foreach ( $ this -> parameters as $ name => $ value ) { $ queryString .= $ this -> buildQuery ( $ name , $ value ) ; } return substr ( $ queryString , 1 ) ; }
build the query from parameters

@return  string
build the query from parameters