Esempio n. 1
0
 /**
  * See if an event matches the filter exactly
  * 
  * If one thing doesn't match between the event and the filter
  * then we return false, instead of only one thing matching
  * 
  * @param Falcraft\Event\Resource\AbstractEvent $event
  *      The event to compare
  * 
  * @return bool
  * 
  */
 public function isStrictlyApplicable(EventResource\AbstractEvent $event, $includeIdentifier = false)
 {
     if ($includeIdentifier) {
         if ($this->identifier != $event->getIdentifier()) {
             return false;
         }
     }
     if ($this->target != $event->getTarget() || $this->function != $event->getFunction() || $this->class != $event->getClass() || $this->namespace != $event->getNamespace() || !Types\Set::subset($event->getTagsObject(), $this->tags) || !Types\Set::subset($event->getCategoriesObject(), $this->categories)) {
         return false;
     }
     return true;
 }