Update NewsletterOption and NewsletterOptionField removal date

This commit updates the remove date of the deprecated models
NewsletterOption and NewsletterOptionField. When they were initially
deprecated it was missed that two Newsletter model methods still used
them.

Those two methods are deprecated in this commit as apparently they are
not used anymore in MP's codebase.

[MAILPOET-5252]
This commit is contained in:
Rodrigo Primo
2023-04-28 11:38:48 -03:00
committed by Oluwaseun Olorunsola
parent 6f511c685b
commit 87f703f22a
3 changed files with 21 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ namespace MailPoet\Models;
* @property string $newsletterType
*
* @deprecated This model is deprecated. Use \MailPoet\Newsletter\Options\NewsletterOptionFieldsRepository and
* \MailPoet\Entities\NewsletterOptionFieldEntity instead. This class can be removed after 2022-11-11.
* \MailPoet\Entities\NewsletterOptionFieldEntity instead. This class can be removed after 2023-10-28.
*/
class NewsletterOptionField extends Model {
public static $_table = MP_NEWSLETTER_OPTION_FIELDS_TABLE; // phpcs:ignore PSR2.Classes.PropertyDeclaration