/**
* {@inheritdoc}
*/
public function getAttributes(ProductInterface $product) : array
{
$attributes = [];
$product->getVariants()->map(function (VariantInterface $variant) use(&$attributes) {
$this->extractAttributesData($variant, $attributes);
});
return $attributes;
}