| @@ -39,9 +39,8 @@ | ||
| 39 | 39 | private string $mailOptIn = ''; |
| 40 | 40 | private string $email = ''; |
| 41 | 41 | private string $consentText = ''; |
| 42 | 42 | private string $consentField = ''; |
| 43 | - private string $formRef = ''; | |
| 44 | 43 | private int $reminderSentAt = 0; |
| 45 | 44 | private string $mailReminder = ''; |
| 46 | 45 | |
| 47 | 46 | /** |
| @@ -97,9 +96,8 @@ | ||
| 97 | 96 | $optIn->mailOptIn = (string) ( $data['mail_optin'] ?? '' ); |
| 98 | 97 | $optIn->email = (string) ( $data['email'] ?? '' ); |
| 99 | 98 | $optIn->consentText = (string) ( $data['consent_text'] ?? '' ); |
| 100 | 99 | $optIn->consentField = (string) ( $data['consent_field'] ?? '' ); |
| 101 | - $optIn->formRef = (string) ( $data['form_ref'] ?? '' ); | |
| 102 | 100 | $optIn->reminderSentAt = self::parseTimestamp( $data['reminder_sent_at'] ?? 0 ); |
| 103 | 101 | $optIn->mailReminder = (string) ( $data['mail_reminder'] ?? '' ); |
| 104 | 102 | |
| 105 | 103 | return $optIn; |
| @@ -140,9 +138,8 @@ | ||
| 140 | 138 | 'mail_optin' => $this->mailOptIn, |
| 141 | 139 | 'email' => $this->email, |
| 142 | 140 | 'consent_text' => $this->consentText, |
| 143 | 141 | 'consent_field' => $this->consentField, |
| 144 | - 'form_ref' => $this->formRef, | |
| 145 | 142 | 'reminder_sent_at' => $this->reminderSentAt > 0 ? gmdate( 'Y-m-d H:i:s', $this->reminderSentAt ) : '', |
| 146 | 143 | 'mail_reminder' => $this->mailReminder, |
| 147 | 144 | ); |
| 148 | 145 | } |
| @@ -312,16 +309,8 @@ | ||
| 312 | 309 | public function getConsentField(): string { |
| 313 | 310 | return $this->consentField; |
| 314 | 311 | } |
| 315 | 312 | |
| 316 | - /** | |
| 317 | - * Instance of the form inside the form id, e.g. the Elementor widget id. | |
| 318 | - * Empty means the record is tied to the whole form (or page) only. | |
| 319 | - */ | |
| 320 | - public function getFormRef(): string { | |
| 321 | - return $this->formRef; | |
| 322 | - } | |
| 323 | - | |
| 324 | 313 | public function getReminderSentAt(): int { |
| 325 | 314 | return $this->reminderSentAt; |
| 326 | 315 | } |
| 327 | 316 | |
| @@ -521,14 +510,8 @@ | ||
| 521 | 510 | |
| 522 | 511 | public function withConsentField( string $consentField ): self { |
| 523 | 512 | $clone = clone $this; |
| 524 | 513 | $clone->consentField = $consentField; |
| 525 | - return $clone; | |
| 526 | - } | |
| 527 | - | |
| 528 | - public function withFormRef( string $formRef ): self { | |
| 529 | - $clone = clone $this; | |
| 530 | - $clone->formRef = $formRef; | |
| 531 | 514 | return $clone; |
| 532 | 515 | } |
| 533 | 516 | |
| 534 | 517 | public function withReminderSentAt( int $time ): self { |