public function removeNotificationEvent(NotificationEvent $event) { if (isset($this->events[$event->getEvent()])) { unset($this->events[$event->getEvent()]); } }