mirror of
https://github.com/elyby/accounts.git
synced 2024-12-05 04:58:56 +05:30
36 lines
758 B
PHP
36 lines
758 B
PHP
<?php
|
|
namespace common\emails\templates;
|
|
|
|
use common\emails\Template;
|
|
|
|
class ChangeEmailConfirmCurrentEmail extends Template {
|
|
|
|
private $key;
|
|
|
|
public function __construct($to, string $key) {
|
|
parent::__construct($to);
|
|
$this->key = $key;
|
|
}
|
|
|
|
public function getSubject(): string {
|
|
return 'Ely.by Account change E-mail confirmation';
|
|
}
|
|
|
|
public function getParams(): array {
|
|
return [
|
|
'key' => $this->key,
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return string|array
|
|
*/
|
|
protected function getView() {
|
|
return [
|
|
'html' => '@common/emails/views/current-email-confirmation-html',
|
|
'text' => '@common/emails/views/current-email-confirmation-text',
|
|
];
|
|
}
|
|
|
|
}
|