reservoir = $reservoir; $this->filter = $filter; } public function offer($index, $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp): void { if ($this->filter->accepts($value, $attributes, $context, $timestamp)) { $this->reservoir->offer($index, $value, $attributes, $context, $timestamp); } } public function collect(array $dataPointAttributes): array { return $this->reservoir->collect($dataPointAttributes); } }