original_string: public function removeVariant(VariantInterface $variant)
      {
          if ($this->hasVariant($variant)) {
              $variant->setObject(null);
              $this->variants->removeElement($variant);
          }
  
          return $this;
      }
code: public function removeVariant(VariantInterface $variant)
      {
          if ($this->hasVariant($variant)) {
              $variant->setObject(null);
              $this->variants->removeElement($variant);
          }
  
          return $this;
      }
code_tokens: public function removeVariant ( VariantInterface $ variant ) { if ( $ this -> hasVariant ( $ variant ) ) { $ variant -> setObject ( null ) ; $ this -> variants -> removeElement ( $ variant ) ; } return $ this ; }
docstring: Removes a variant
  
  @param VariantInterface $variant
  
  @return $this
docstring_tokens: Removes a variant