public function add($element) { $this->elements[] = $element; return true; }
/** * {@inheritdoc} */ public function addTranslation(AbstractTranslation $translation) { if (!$this->translations->contains($translation)) { $translation->setForeignKey($this); $this->translations->add($translation); } }