public function is($event, $handler, $context) { if (($event === null or $this->event === $event) and ($handler === null or $this->handler === $handler) and ($context === null or $this->context === $context)) { return true; } return false; }