MailQueue.php 648 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Illuminate\Contracts\Mail;
  3. interface MailQueue
  4. {
  5. /**
  6. * Queue a new e-mail message for sending.
  7. *
  8. * @param string|array|\Illuminate\Contracts\Mail\Mailable $view
  9. * @param string|null $queue
  10. * @return mixed
  11. */
  12. public function queue($view, $queue = null);
  13. /**
  14. * Queue a new e-mail message for sending after (n) seconds.
  15. *
  16. * @param \DateTimeInterface|\DateInterval|int $delay
  17. * @param string|array|\Illuminate\Contracts\Mail\Mailable $view
  18. * @param string|null $queue
  19. * @return mixed
  20. */
  21. public function later($delay, $view, $queue = null);
  22. }