| 1 | <?php |
||
| 5 | abstract class MailComposer |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | |||
| 9 | * |
||
| 10 | * @var Mail |
||
| 11 | */ |
||
| 12 | private $mail; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Create a new mail instance. |
||
| 16 | * |
||
| 17 | * @param Mail $mail |
||
| 18 | */ |
||
| 19 | 2 | public function __construct(Mail $mail) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Compose an e-mail. |
||
| 26 | * |
||
| 27 | * @param string $toEmail |
||
| 28 | * @param string $toName |
||
| 29 | * @param string $subject |
||
| 30 | * @param string $view |
||
| 31 | * @param array $data |
||
| 32 | * @param callable $options |
||
| 33 | * |
||
| 34 | * @return \CodeZero\Mailer\Mail |
||
| 35 | */ |
||
| 36 | 1 | protected function getMail($toEmail, $toName, $subject, $view, array $data = array(), $options = null) |
|
| 40 | } |
||
| 41 |