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\Template;
|
2017-04-21 04:11:43 +05:30
|
|
|
|
|
|
|
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';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string|array
|
|
|
|
*/
|
|
|
|
protected function getView() {
|
|
|
|
return [
|
2017-04-24 21:52:24 +05:30
|
|
|
'html' => '@api/mails/current-email-confirmation-html',
|
|
|
|
'text' => '@api/mails/current-email-confirmation-text',
|
2017-04-21 04:11:43 +05:30
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getParams(): array {
|
|
|
|
return [
|
|
|
|
'key' => $this->key,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|