context(); $seasonTicketContract = $context->getSeasonTicketContract(); if ($seasonTicketContract === null) { throw new AppCommonException("コンテキスト不正 定期契約情報"); } $this->confirmationCode = $seasonTicketContract->confirmation_code; $this->seasonTicketSeqNo = $seasonTicketContract->season_ticket_seq_no; } public function getTemplateName(): string { return 'mails.members.reset_idm'; } public function getSubject(): string { return '【スマートパーキングパス】ICカードリセットのお知らせ'; } public function getMemberParams(): array { return [ 'confirmationCode' => $this->confirmationCode, 'seasonTicketSeqNo' => $this->seasonTicketSeqNo, ]; } }