public function setAllowVariants($allowVariants) { $this->allowVariants = (bool) $allowVariants; return $this; }