mirror of
https://github.com/elyby/accounts.git
synced 2024-10-31 16:03:01 +05:30
35 lines
794 B
PHP
35 lines
794 B
PHP
|
<?php
|
||
|
namespace api\emails\templates;
|
||
|
|
||
|
use api\emails\TemplateWithRenderer;
|
||
|
|
||
|
class ForgotPasswordEmail extends TemplateWithRenderer {
|
||
|
|
||
|
private $params;
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function __construct($to, string $locale, ForgotPasswordParams $params) {
|
||
|
TemplateWithRenderer::__construct($to, $locale);
|
||
|
$this->params = $params;
|
||
|
}
|
||
|
|
||
|
public function getSubject(): string {
|
||
|
return 'Ely.by Account forgot password';
|
||
|
}
|
||
|
|
||
|
protected function getTemplateName(): string {
|
||
|
return 'forgotPassword';
|
||
|
}
|
||
|
|
||
|
public function getParams(): array {
|
||
|
return [
|
||
|
'username' => $this->params->getUsername(),
|
||
|
'code' => $this->params->getCode(),
|
||
|
'link' => $this->params->getLink(),
|
||
|
];
|
||
|
}
|
||
|
|
||
|
}
|