/**
  * {@inheritdoc}
  */
 public function toArray()
 {
     $query = [];
     $query['match'] = [$this->query->getType() => $this->query->toArray()];
     $query['end'] = $this->end;
     $output = $this->processArray($query);
     return $output;
 }
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     $query = ['include' => [$this->include->getType() => $this->include->toArray()], 'exclude' => [$this->exclude->getType() => $this->exclude->toArray()]];
     return $query;
 }