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;
    }
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;
    }
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 ; }
Set the translatable object

@param TranslatableInterface $translatable
@return self
Set the translatable object