|
- <?php
-
- namespace App\Email;
-
- use Illuminate\Bus\Queueable;
- use Illuminate\Database\Eloquent\Collection;
- use Illuminate\Queue\SerializesModels;
-
- class TextEmail extends BaseEmailer
- {
- use Queueable, SerializesModels;
-
- private string $__subject;
- private string $__contents;
-
-
- public function __construct(string $subject, string $contents, ?Collection $attachments = null)
- {
- $this->__subject = $subject;
- $this->__contents = $contents;
- $this->__attachments = $attachments;
- }
-
- public function getTemplateName(): string
- {
- return 'mails.free_text';
- }
-
- public function getSubject(): string
- {
- return $this->__subject;
- }
-
- public function getParams(): array
- {
- return [
- 'contents' => $this->__contents,
- ];
- }
- }
|