Example #1
0
 /**
  * @see \PHPLog\FilterAbstract::decide()
  */
 public function decide(Event $event)
 {
     if ($this->function === null) {
         return FilterAbstract::NEUTRAL;
     }
     if ($event->getFunction() === null) {
         return FilterAbstract::NEUTRAL;
     }
     if ($event->getFunction() == $this->function) {
         return $this->acceptOnMatch ? FilterAbstract::ACCEPT : FilterAbstract::DENY;
     }
     return FilterAbstract::NEUTRAL;
 }