Skip to content

Commit

Permalink
Add retryUntil to SendQueueNotifications
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed Sep 30, 2019
1 parent 2a2dce5 commit 500f98e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Illuminate/Notifications/SendQueuedNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ public function retryAfter()
return $this->notification->retryAfter ?? $this->notification->retryAfter();
}

/**
* Get the expiration for the notification.
*
* @return mixed
*/
public function retryUntil() {
if (! method_exists($this->notification, 'retryUntil') && ! isset($this->notification->timeoutAt)) {
return;
}

return $this->notification->timeoutAt ?? $this->notification->retryUntil();
}

/**
* Prepare the instance for cloning.
*
Expand Down

0 comments on commit 500f98e

Please sign in to comment.