mirror of
https://github.com/elyby/accounts.git
synced 2024-11-15 01:36:12 +05:30
38 lines
905 B
PHP
38 lines
905 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace common\emails\templates;
|
|
|
|
use common\components\EmailsRenderer\RendererInterface;
|
|
use common\emails\TemplateWithRenderer;
|
|
|
|
class ForgotPasswordEmail extends TemplateWithRenderer {
|
|
|
|
private $params;
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function __construct($to, string $locale, ForgotPasswordParams $params, RendererInterface $renderer) {
|
|
parent::__construct($to, $locale, $renderer);
|
|
$this->params = $params;
|
|
}
|
|
|
|
public function getSubject(): string {
|
|
return 'Ely.by Account forgot password';
|
|
}
|
|
|
|
public function getTemplateName(): string {
|
|
return 'forgotPassword';
|
|
}
|
|
|
|
public function getParams(): array {
|
|
return [
|
|
'username' => $this->params->getUsername(),
|
|
'code' => $this->params->getCode(),
|
|
'link' => $this->params->getLink(),
|
|
];
|
|
}
|
|
|
|
}
|