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.

38 lines
868B

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