Doing this as part of the task to deprecated old Paris models (NewsletterLink) and use Doctrine entities instead (NewslleterLinkEntity). [MAILPOET-3816]
19 lines
566 B
PHP
19 lines
566 B
PHP
<?php
|
|
|
|
namespace MailPoet\Models;
|
|
|
|
use MailPoet\Entities\NewsletterLinkEntity;
|
|
|
|
/**
|
|
* @property int $newsletterId
|
|
* @property int $queueId
|
|
* @property string $url
|
|
* @property string $hash
|
|
* @property int|null $clicksCount
|
|
*/
|
|
class NewsletterLink extends Model {
|
|
public static $_table = MP_NEWSLETTER_LINKS_TABLE; // phpcs:ignore PSR2.Classes.PropertyDeclaration
|
|
const UNSUBSCRIBE_LINK_SHORT_CODE = NewsletterLinkEntity::UNSUBSCRIBE_LINK_SHORT_CODE;
|
|
const INSTANT_UNSUBSCRIBE_LINK_SHORT_CODE = NewsletterLinkEntity::INSTANT_UNSUBSCRIBE_LINK_SHORT_CODE;
|
|
}
|