領収証発行サービス
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.

43 lines
1.1KB

  1. <?php
  2. namespace App\Mail\Members;
  3. use App\Exceptions\AppCommonException;
  4. class ResetIDm extends Member
  5. {
  6. private string $confirmationCode;
  7. private int $seasonTicketSeqNo;
  8. public function __construct()
  9. {
  10. $context = $this->context();
  11. $seasonTicketContract = $context->getSeasonTicketContract();
  12. if ($seasonTicketContract === null) {
  13. throw new AppCommonException("コンテキスト不正 定期契約情報");
  14. }
  15. $this->confirmationCode = $seasonTicketContract->confirmation_code;
  16. $this->seasonTicketSeqNo = $seasonTicketContract->season_ticket_seq_no;
  17. }
  18. public function getTemplateName(): string
  19. {
  20. return 'mails.members.reset_idm';
  21. }
  22. public function getSubject(): string
  23. {
  24. return '【スマートパーキングパス】ICカードリセットのお知らせ';
  25. }
  26. public function getMemberParams(): array
  27. {
  28. return [
  29. 'confirmationCode' => $this->confirmationCode,
  30. 'seasonTicketSeqNo' => $this->seasonTicketSeqNo,
  31. ];
  32. }
  33. }