aggregation = $aggregation; return $this; } protected function appendAggregation(array $command): array { if (!is_null($this->aggregation)) { $command[] = 'AGGREGATION'; $command[] = $this->aggregation->type; $command[] = $this->aggregation->timeBucket; } return $command; } }