queue = $queue; $this->seconds = $seconds; $this->connection = $connection; } /** * Get a notification representation of the event. * * @return \Laravel\Horizon\Notifications\LongWaitDetected */ public function toNotification() { return new LongWaitDetectedNotification( $this->connection, $this->queue, $this->seconds ); } }