/** * @param Lang $language * @return Journal */ public function addLanguage(Lang $language) { if (!$this->languages->contains($language)) { $this->languages->add($language); } return $this; }
/** * Remove languages * * @param Lang $languages */ public function removeLanguage(Lang $languages) { $this->languages->removeElement($languages); }
/** * @param Lang $language * @return $this */ public function removeLanguage(Lang $language) { $this->languages->removeElement($language); return $this; }