public function setVariantSelectionMethod($variantSelectionMethod)
{
if (!in_array($variantSelectionMethod, [self::VARIANT_SELECTION_CHOICE, self::VARIANT_SELECTION_MATCH])) {
throw new \InvalidArgumentException(sprintf('Wrong variant selection method "%s" given.', $variantSelectionMethod));
}
$this->variantSelectionMethod = $variantSelectionMethod;
}