original_string: public function setTranslatable(TranslatableInterface $translatable = null)
      {
          if ($this->translatable == $translatable) {
              return $this;
          }
      
          $old = $this->translatable;
          $this->translatable = $translatable;
      
          if ($old !== null) {
              $old->removeTranslation($this);
          }
      
          if ($translatable !== null) {
              $translatable->addTranslation($this);
          }
      
          return $this;
      }
code: public function setTranslatable(TranslatableInterface $translatable = null)
      {
          if ($this->translatable == $translatable) {
              return $this;
          }
      
          $old = $this->translatable;
          $this->translatable = $translatable;
      
          if ($old !== null) {
              $old->removeTranslation($this);
          }
      
          if ($translatable !== null) {
              $translatable->addTranslation($this);
          }
      
          return $this;
      }
code_tokens: public function setTranslatable ( TranslatableInterface $ translatable = null ) { if ( $ this -> translatable == $ translatable ) { return $ this ; } $ old = $ this -> translatable ; $ this -> translatable = $ translatable ; if ( $ old !== null ) { $ old -> removeTranslation ( $ this ) ; } if ( $ translatable !== null ) { $ translatable -> addTranslation ( $ this ) ; } return $ this ; }
docstring: Set the translatable object
  
  @param TranslatableInterface $translatable
  @return self
docstring_tokens: Set the translatable object