original_string: public function addVariant(VariantInterface $variant)
      {
          if (!$this->hasVariant($variant)) {
              $variant->setObject($this);
              $this->variants->add($variant);
          }
  
          return $this;
      }
code: public function addVariant(VariantInterface $variant)
      {
          if (!$this->hasVariant($variant)) {
              $variant->setObject($this);
              $this->variants->add($variant);
          }
  
          return $this;
      }
code_tokens: public function addVariant ( VariantInterface $ variant ) { if ( ! $ this -> hasVariant ( $ variant ) ) { $ variant -> setObject ( $ this ) ; $ this -> variants -> add ( $ variant ) ; } return $ this ; }
docstring: Adds a variant
  
  @param VariantInterface $variant
  
  @return $this
docstring_tokens: Adds a variant