Create score columns
[MAILPOET-3525]
This commit is contained in:
@ -125,6 +125,17 @@ class SubscriberEntity {
|
||||
*/
|
||||
private $linkToken;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="integer")
|
||||
* @var int|null
|
||||
*/
|
||||
private $engagementScore;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="datetimetz", nullable=true)
|
||||
* @var DateTimeInterface|null
|
||||
*/
|
||||
private $engagementScoreUpdatedAt;
|
||||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="MailPoet\Entities\SubscriberSegmentEntity", mappedBy="subscriber")
|
||||
@ -397,4 +408,32 @@ class SubscriberEntity {
|
||||
return $segment !== null;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getEngagementScore(): ?int {
|
||||
return $this->engagementScore;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int|null $engagementScore
|
||||
*/
|
||||
public function setEngagementScore(?int $engagementScore): void {
|
||||
$this->engagementScore = $engagementScore;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return DateTimeInterface|null
|
||||
*/
|
||||
public function getEngagementScoreUpdatedAt(): ?DateTimeInterface {
|
||||
return $this->engagementScoreUpdatedAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DateTimeInterface|null $engagementScoreUpdatedAt
|
||||
*/
|
||||
public function setEngagementScoreUpdatedAt(?DateTimeInterface $engagementScoreUpdatedAt): void {
|
||||
$this->engagementScoreUpdatedAt = $engagementScoreUpdatedAt;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user