2017-04-21 04:11:43 +05:30
|
|
|
<?php
|
2019-06-07 04:46:13 +05:30
|
|
|
declare(strict_types=1);
|
|
|
|
|
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';
|
|
|
|
}
|
|
|
|
|
2018-04-18 02:17:25 +05:30
|
|
|
public function getParams(): array {
|
|
|
|
return [
|
|
|
|
'key' => $this->key,
|
|
|
|
'username' => $this->username,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2017-04-21 04:11:43 +05:30
|
|
|
/**
|
|
|
|
* @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
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|