attributeProcessor = $attributeProcessor; $this->aggregation = $aggregation; } public function create(): MetricAggregatorInterface { return new MetricAggregator($this->attributeProcessor, $this->aggregation); } }