| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function __construct($from, $to, $subject, $view, array $params, MailerInterface $mailer) |
||
| 41 | { |
||
| 42 | $this->from = $from; |
||
| 43 | $this->to = $to; |
||
| 44 | $this->subject = $subject; |
||
| 45 | $this->view = $view; |
||
| 46 | $this->params = $params; |
||
| 47 | $this->mailer = $mailer; |
||
| 48 | $this->mailer->setViewPath($this->viewPath); |
||
| 49 | $this->mailer->getView()->theme = Yii::$app->view->theme; |
||
| 50 | } |
||
| 51 | |||
| 78 |