/** * {@inheritDoc} */ public function match(EventInterface $event) { return ($this->acceptedEventTypes & $event->getType()) === $event->getType(); }
/** * Bitwise and on the event type * * @param EventInterface $event * * @return bool */ private function skipByType(EventInterface $event) { return !($event->getType() & $this->eventTypes); }