mirror of
https://github.com/elyby/accounts.git
synced 2024-12-29 08:30:19 +05:30
40 lines
839 B
PHP
40 lines
839 B
PHP
|
<?php
|
||
|
namespace api\emails\templates;
|
||
|
|
||
|
use api\emails\Template;
|
||
|
|
||
|
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 [
|
||
|
'html' => '@app/mails/new-email-confirmation-html',
|
||
|
'text' => '@app/mails/new-email-confirmation-text',
|
||
|
];
|
||
|
}
|
||
|
|
||
|
public function getParams(): array {
|
||
|
return [
|
||
|
'key' => $this->key,
|
||
|
'username' => $this->username,
|
||
|
];
|
||
|
}
|
||
|
|
||
|
}
|