public function addTranslation(TranslationInterface $translation)
    {
        if (!$this->translations->containsKey($translation->getLocale())) {
            $this->translations->set($translation->getLocale(), $translation);
            $translation->setTranslatable($this);
        }

        return $this;
    }
public function addTranslation(TranslationInterface $translation)
    {
        if (!$this->translations->containsKey($translation->getLocale())) {
            $this->translations->set($translation->getLocale(), $translation);
            $translation->setTranslatable($this);
        }

        return $this;
    }
public function addTranslation ( TranslationInterface $ translation ) { if ( ! $ this -> translations -> containsKey ( $ translation -> getLocale ( ) ) ) { $ this -> translations -> set ( $ translation -> getLocale ( ) , $ translation ) ; $ translation -> setTranslatable ( $ this ) ; } return $ this ; }
Adds the translation.

@param TranslationInterface $translation
@return TranslatableInterface|$this
Adds the translation .