Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

41 line
947B

  1. <?php
  2. namespace App\Email\Members;
  3. use App\Kintone\Models\ChangePlanApplication;
  4. use App\Kintone\Models\Customer;
  5. use App\Kintone\Models\SeasonTicketContract;
  6. class ChangePlanOrderNotice extends Members
  7. {
  8. public function __construct(
  9. private SeasonTicketContract $seasonTicketContract,
  10. private ChangePlanApplication $app,
  11. ?Customer $customer = null,
  12. ) {
  13. if ($customer === null) {
  14. $customer = $app->getCustomer();
  15. }
  16. parent::__construct($customer);
  17. }
  18. public function getTemplateName(): string
  19. {
  20. return 'emails.members.change_plan_order_notice';
  21. }
  22. public function getSubject(): string
  23. {
  24. return "##TODO プラン変更申請受付のお知らせ";
  25. }
  26. public function getMemberParams(): array
  27. {
  28. return [
  29. 'parking_name' => $this->app->parkingName,
  30. 'memo' => $this->app->memo,
  31. ];
  32. }
  33. }