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.

40 lines
975B

  1. <?php
  2. namespace App\Email\Members;
  3. use App\Kintone\Models\Customer;
  4. use App\Kintone\Models\SeasonTicketContract;
  5. use App\Kintone\Models\UserInfoUpdateApplication;
  6. class UserInfoUpdateOrderApprove extends Members
  7. {
  8. public function __construct(
  9. protected Customer $customer,
  10. private SeasonTicketContract $seasonTicketContract,
  11. private UserInfoUpdateApplication $app
  12. ) {
  13. parent::__construct($customer);
  14. }
  15. public function getTemplateName(): string
  16. {
  17. return 'emails.members.user_info_update_order_approve';
  18. }
  19. public function getSubject(): string
  20. {
  21. return "利用者情報変更完了のお知らせ";
  22. }
  23. public function getMemberParams(): array
  24. {
  25. return [
  26. 'zip_code' => $this->customer->zipCode,
  27. 'address' => $this->customer->address,
  28. 'phone_no' => $this->customer->phoneNumber,
  29. 'memo' => $this->app->memo,
  30. ];
  31. }
  32. }