v.0.1
This commit is contained in:
76
vendor/illuminate/contracts/Mail/Mailable.php
vendored
Normal file
76
vendor/illuminate/contracts/Mail/Mailable.php
vendored
Normal file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Mail;
|
||||
|
||||
use Illuminate\Contracts\Queue\Factory as Queue;
|
||||
|
||||
interface Mailable
|
||||
{
|
||||
/**
|
||||
* Send the message using the given mailer.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Mail\Factory|\Illuminate\Contracts\Mail\Mailer $mailer
|
||||
* @return void
|
||||
*/
|
||||
public function send($mailer);
|
||||
|
||||
/**
|
||||
* Queue the given message.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Queue\Factory $queue
|
||||
* @return mixed
|
||||
*/
|
||||
public function queue(Queue $queue);
|
||||
|
||||
/**
|
||||
* Deliver the queued message after the given delay.
|
||||
*
|
||||
* @param \DateTimeInterface|\DateInterval|int $delay
|
||||
* @param \Illuminate\Contracts\Queue\Factory $queue
|
||||
* @return mixed
|
||||
*/
|
||||
public function later($delay, Queue $queue);
|
||||
|
||||
/**
|
||||
* Set the recipients of the message.
|
||||
*
|
||||
* @param object|array|string $address
|
||||
* @param string|null $name
|
||||
* @return self
|
||||
*/
|
||||
public function cc($address, $name = null);
|
||||
|
||||
/**
|
||||
* Set the recipients of the message.
|
||||
*
|
||||
* @param object|array|string $address
|
||||
* @param string|null $name
|
||||
* @return $this
|
||||
*/
|
||||
public function bcc($address, $name = null);
|
||||
|
||||
/**
|
||||
* Set the recipients of the message.
|
||||
*
|
||||
* @param object|array|string $address
|
||||
* @param string|null $name
|
||||
* @return $this
|
||||
*/
|
||||
public function to($address, $name = null);
|
||||
|
||||
/**
|
||||
* Set the locale of the message.
|
||||
*
|
||||
* @param string $locale
|
||||
* @return $this
|
||||
*/
|
||||
public function locale($locale);
|
||||
|
||||
/**
|
||||
* Set the name of the mailer that should be used to send the message.
|
||||
*
|
||||
* @param string $mailer
|
||||
* @return $this
|
||||
*/
|
||||
public function mailer($mailer);
|
||||
}
|
Reference in New Issue
Block a user