| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class Message extends \yii\swiftmailer\Message |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Mailer the mailer instance that created this message. |
||
| 22 | */ |
||
| 23 | public $mailer; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Enqueue this email message. |
||
| 27 | * @param Mailer $mailer the mailer that should be used to queue this message. |
||
| 28 | * If no mailer is given it will first check if "mailer" property is set and if not, |
||
| 29 | * the "mail" application component will be used instead. |
||
| 30 | * @return bool whether this message is added to queue successfully. |
||
| 31 | * @throws InvalidConfigException |
||
| 32 | */ |
||
| 33 | 2 | public function queue(Mailer $mailer = null) |
|
| 46 |