Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

44 lines
1.1KB

  1. <?php
  2. namespace App\Email\Members;
  3. use App\Kintone\Models\Customer;
  4. use App\Kintone\Models\SeasonTicketContract;
  5. use App\Kintone\Models\SeasonTicketReOrderApplication;
  6. class SeasonTicketReOrderNotice extends Members
  7. {
  8. public function __construct(
  9. private SeasonTicketContract $seasonTicketContract,
  10. private SeasonTicketReOrderApplication $app,
  11. protected ?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.season_ticket_re_order_notice';
  21. }
  22. public function getSubject(): string
  23. {
  24. return "定期券再発行申請受付のお知らせ";
  25. }
  26. public function getMemberParams(): array
  27. {
  28. return [
  29. 'parking_name' => $this->app->parkingName,
  30. 'zip_code' => $this->customer->zipCode,
  31. 'address' => $this->customer->address,
  32. 'reason' => $this->app->reason,
  33. 'memo' => $this->app->memo,
  34. ];
  35. }
  36. }