public function addVariant(VariantInterface $variant) { if (!$this->variants->contains($variant)) { $this->variants->add($variant); } return $this; }