username = $username; $this->key = $key; } public function getSubject(): string { return 'Ely.by Account new E-mail confirmation'; } /** * @return string|array */ protected function getView() { return [ 'html' => '@app/mails/new-email-confirmation-html', 'text' => '@app/mails/new-email-confirmation-text', ]; } public function getParams(): array { return [ 'key' => $this->key, 'username' => $this->username, ]; } }