/**
  * Evaluates the locale.
  *
  * @param NotificationInput $input
  *
  * @return string
  */
 private function getLocale(NotificationInput $input) : string
 {
     return null === $input->getLanguage() ? $this->translator->getLocale() : $input->getLanguage();
 }
 public function setLocale()
 {
     $event = new NotificationInput();
     $event->setLanguage('de');
     $this->assertSame('de', $event->getLanguage());
 }