public function checkLimit(DispatchStopEvent $event)
 {
     $this->events++;
     if ($this->events >= $this->limit) {
         $event->stopDispatching();
     }
 }
 public function checkLimit(DispatchStopEvent $event)
 {
     if ($this->startTime + $this->limit >= time()) {
         $event->stopDispatching();
     }
 }