2017-04-21 04:11:43 +05:30
|
|
|
<?php
|
2017-04-24 21:52:24 +05:30
|
|
|
namespace common\emails\templates;
|
2017-04-21 04:11:43 +05:30
|
|
|
|
2017-04-24 21:52:24 +05:30
|
|
|
use common\emails\Template;
|
2017-04-21 04:11:43 +05:30
|
|
|
|
|
|
|
class ChangeEmailConfirmNewEmail extends Template {
|
|
|
|
|
|
|
|
private $username;
|
|
|
|
|
|
|
|
private $key;
|
|
|
|
|
|
|
|
public function __construct($to, string $username, string $key) {
|
|
|
|
parent::__construct($to);
|
|
|
|
$this->username = $username;
|
|
|
|
$this->key = $key;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSubject(): string {
|
|
|
|
return 'Ely.by Account new E-mail confirmation';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string|array
|
|
|
|
*/
|
|
|
|
protected function getView() {
|
|
|
|
return [
|
2017-04-24 22:01:38 +05:30
|
|
|
'html' => '@common/emails/views/new-email-confirmation-html',
|
|
|
|
'text' => '@common/emails/views/new-email-confirmation-text',
|
2017-04-21 04:11:43 +05:30
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getParams(): array {
|
|
|
|
return [
|
|
|
|
'key' => $this->key,
|
|
|
|
'username' => $this->username,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|