src/Param/Segment/Segment.php
public function getQuery()
    {
        $queryParts = array_map(function ($value) {
            return ($value instanceof Operator) ? $value->expression() : $value;
        }, $this->queryParts);

        return implode('', $queryParts);
    }
public function getQuery()
    {
        $queryParts = array_map(function ($value) {
            return ($value instanceof Operator) ? $value->expression() : $value;
        }, $this->queryParts);

        return implode('', $queryParts);
    }
public function getQuery ( ) { $ queryParts = array_map ( function ( $ value ) { return ( $ value instanceof Operator ) ? $ value -> expression ( ) : $ value ; } , $ this -> queryParts ) ; return implode ( '' , $ queryParts ) ; }
builds the query and returns it as a string

@return string
builds the query and returns it as a string