Mailable.php 733B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Illuminate\Contracts\Mail;
  3. use Illuminate\Contracts\Queue\Factory as Queue;
  4. interface Mailable
  5. {
  6. /**
  7. * Send the message using the given mailer.
  8. *
  9. * @param \Illuminate\Contracts\Mail\Mailer $mailer
  10. * @return void
  11. */
  12. public function send(Mailer $mailer);
  13. /**
  14. * Queue the given message.
  15. *
  16. * @param \Illuminate\Contracts\Queue\Factory $queue
  17. * @return mixed
  18. */
  19. public function queue(Queue $queue);
  20. /**
  21. * Deliver the queued message after the given delay.
  22. *
  23. * @param \DateTime|int $delay
  24. * @param \Illuminate\Contracts\Queue\Factory $queue
  25. * @return mixed
  26. */
  27. public function later($delay, Queue $queue);
  28. }