public function RemovePreference(IDomainEvent $event) { if ($this->Exists($event->EventCategory(), $event->EventType())) { $this->Delete($event->EventCategory(), $event->EventType()); $this->_removed[] = $event; } }
/** * @param IDomainEvent $event * @return bool */ public function WantsEventEmail(IDomainEvent $event) { return $this->emailPreferences->Exists($event->EventCategory(), $event->EventType()); }