public function setTranslator(TranslatorInterface $translator) { $this->translator = $translator; return $this; }