2017-04-21 04:11:43 +05:30
|
|
|
<?php
|
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\TemplateWithRenderer;
|
2017-04-21 04:11:43 +05:30
|
|
|
|
|
|
|
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(),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|