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';
|
|
|
|
}
|
|
|
|
|
2018-04-18 02:17:25 +05:30
|
|
|
public function getParams(): array {
|
|
|
|
return [
|
|
|
|
'key' => $this->key,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2017-04-21 04:11:43 +05:30
|
|
|
/**
|
|
|
|
* @return string|array
|
|
|
|
*/
|
|
|
|
protected function getView() {
|
|
|
|
return [
|
2017-04-24 22:01:38 +05:30
|
|
|
'html' => '@common/emails/views/current-email-confirmation-html',
|
|
|
|
'text' => '@common/emails/views/current-email-confirmation-text',
|
2017-04-21 04:11:43 +05:30
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|