public function assemblePredicateSet(PredicateSet $predicate)
 {
     if (!$predicate->hasPredicates()) {
         return '';
     }
     return '(' . implode($predicate->getGlue(), $this->assembleSegments($predicate->getPredicates())) . ')';
 }
 public function assemblePredicateSet(PredicateSet $predicate)
 {
     if (!$predicate->hasPredicates()) {
         return '';
     }
     $predicates = $predicate->getPredicates();
     foreach ($predicates as $p) {
         if ($p instanceof PredicateSet) {
             throw new \Exception('Cannot have multiple predicate sets in CQL');
         }
     }
     return implode($predicate->getGlue(), $this->assembleSegments($predicates));
 }