CustomFieldEntity.php
2 months ago
DynamicSegmentFilterData.php
2 months ago
DynamicSegmentFilterEntity.php
3 years ago
FeatureFlagEntity.php
3 years ago
FormEntity.php
1 week ago
LogEntity.php
3 years ago
NewsletterEntity.php
2 months ago
NewsletterLinkEntity.php
3 years ago
NewsletterOptionEntity.php
3 years ago
NewsletterOptionFieldEntity.php
1 month ago
NewsletterPostEntity.php
3 years ago
NewsletterSegmentEntity.php
3 years ago
NewsletterTemplateEntity.php
3 years ago
ScheduledTaskEntity.php
1 month ago
ScheduledTaskSubscriberEntity.php
1 year ago
SegmentEntity.php
2 months ago
SendingQueueEntity.php
2 months ago
SettingEntity.php
3 years ago
StatisticsBounceEntity.php
3 years ago
StatisticsClickEntity.php
3 years ago
StatisticsFormEntity.php
3 years ago
StatisticsNewsletterEntity.php
1 year ago
StatisticsOpenEntity.php
3 years ago
StatisticsUnsubscribeEntity.php
2 months ago
StatisticsWooCommercePurchaseEntity.php
2 years ago
StatsNotificationEntity.php
3 years ago
SubscriberCustomFieldEntity.php
3 years ago
SubscriberEntity.php
4 days ago
SubscriberIPEntity.php
3 years ago
SubscriberSegmentEntity.php
3 years ago
SubscriberTagEntity.php
4 years ago
TagEntity.php
3 years ago
UserAgentEntity.php
3 years ago
UserFlagEntity.php
3 years ago
WpPostEntity.php
2 years ago
index.php
3 years ago
UserFlagEntity.php
70 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\Entities; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Doctrine\EntityTraits\AutoincrementedIdTrait; |
| 9 | use MailPoet\Doctrine\EntityTraits\CreatedAtTrait; |
| 10 | use MailPoet\Doctrine\EntityTraits\UpdatedAtTrait; |
| 11 | use MailPoetVendor\Doctrine\ORM\Mapping as ORM; |
| 12 | |
| 13 | /** |
| 14 | * @ORM\Entity() |
| 15 | * @ORM\Table(name="user_flags") |
| 16 | */ |
| 17 | class UserFlagEntity { |
| 18 | use AutoincrementedIdTrait; |
| 19 | use CreatedAtTrait; |
| 20 | use UpdatedAtTrait; |
| 21 | |
| 22 | /** |
| 23 | * @ORM\Column(type="integer") |
| 24 | * @var int |
| 25 | */ |
| 26 | private $userId; |
| 27 | |
| 28 | /** |
| 29 | * @ORM\Column(type="string") |
| 30 | * @var string |
| 31 | */ |
| 32 | private $name; |
| 33 | |
| 34 | /** |
| 35 | * @ORM\Column(type="string", nullable=true) |
| 36 | * @var string|null |
| 37 | */ |
| 38 | private $value; |
| 39 | |
| 40 | /** @return int */ |
| 41 | public function getUserId() { |
| 42 | return $this->userId; |
| 43 | } |
| 44 | |
| 45 | /** @param int $userId */ |
| 46 | public function setUserId($userId) { |
| 47 | $this->userId = $userId; |
| 48 | } |
| 49 | |
| 50 | /** @return string */ |
| 51 | public function getName() { |
| 52 | return $this->name; |
| 53 | } |
| 54 | |
| 55 | /** @param string $name */ |
| 56 | public function setName($name) { |
| 57 | $this->name = $name; |
| 58 | } |
| 59 | |
| 60 | /** @return string|null */ |
| 61 | public function getValue() { |
| 62 | return $this->value; |
| 63 | } |
| 64 | |
| 65 | /** @param string|null $value */ |
| 66 | public function setValue($value) { |
| 67 | $this->value = $value; |
| 68 | } |
| 69 | } |
| 70 |