attributeKeys = $attributeKeys; } public function process(AttributesInterface $attributes, ContextInterface $context): AttributesInterface { $filtered = []; foreach ($this->attributeKeys as $key) { $filtered[$key] = $attributes->get($key); } return new Attributes($filtered, 0); } }