領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 satır
825B

  1. <?php
  2. namespace App\Email;
  3. use Illuminate\Bus\Queueable;
  4. use Illuminate\Database\Eloquent\Collection;
  5. use Illuminate\Queue\SerializesModels;
  6. class TextEmail extends BaseEmailer
  7. {
  8. use Queueable, SerializesModels;
  9. private string $__subject;
  10. private string $__contents;
  11. public function __construct(string $subject, string $contents, ?Collection $attachments = null)
  12. {
  13. $this->__subject = $subject;
  14. $this->__contents = $contents;
  15. $this->__attachments = $attachments;
  16. }
  17. public function getTemplateName(): string
  18. {
  19. return 'mails.free_text';
  20. }
  21. public function getSubject(): string
  22. {
  23. return $this->__subject;
  24. }
  25. public function getParams(): array
  26. {
  27. return [
  28. 'contents' => $this->__contents,
  29. ];
  30. }
  31. }