| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class EmailChannel extends Channel |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var \yii\mail\MailerInterface|array|string the mailer object or the application component ID of the mailer object. |
||
| 18 | * After the EmailChannel object is created, if you want to change this property, you should only assign it |
||
| 19 | * with a mailer object. |
||
| 20 | */ |
||
| 21 | public $mailer = 'mailer'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritdoc |
||
| 25 | */ |
||
| 26 | public function init() |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get channel name. |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getName() |
||
| 37 | { |
||
| 38 | return 'EMail'; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Sends a notification in this channel. |
||
| 43 | * @param NotificationInterface $notification |
||
| 44 | */ |
||
| 45 | public function send(NotificationInterface $notification) |
||
| 47 | |||
| 48 | } |
||
| 49 | } |