|
|
|
@@ -0,0 +1,40 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
namespace App\Email\Members; |
|
|
|
|
|
|
|
use App\Kintone\Models\ChangePlanApplication; |
|
|
|
use App\Kintone\Models\Customer; |
|
|
|
use App\Kintone\Models\SeasonTicketContract; |
|
|
|
|
|
|
|
class ChangePlanOrderNotice extends Members |
|
|
|
{ |
|
|
|
|
|
|
|
public function __construct( |
|
|
|
private SeasonTicketContract $seasonTicketContract, |
|
|
|
private ChangePlanApplication $app, |
|
|
|
?Customer $customer = null, |
|
|
|
) { |
|
|
|
if ($customer === null) { |
|
|
|
$customer = $app->getCustomer(); |
|
|
|
} |
|
|
|
parent::__construct($customer); |
|
|
|
} |
|
|
|
|
|
|
|
public function getTemplateName(): string |
|
|
|
{ |
|
|
|
return 'emails.members.change_plan_order_notice'; |
|
|
|
} |
|
|
|
|
|
|
|
public function getSubject(): string |
|
|
|
{ |
|
|
|
return "##TODO プラン変更申請受付のお知らせ"; |
|
|
|
} |
|
|
|
|
|
|
|
public function getMemberParams(): array |
|
|
|
{ |
|
|
|
return [ |
|
|
|
'parking_name' => $this->app->parkingName, |
|
|
|
'memo' => $this->app->memo, |
|
|
|
]; |
|
|
|
} |
|
|
|
} |