Save user agent on open
[MAILPOET-3735]
This commit is contained in:
@ -37,6 +37,12 @@ class StatisticsOpenEntity {
|
||||
*/
|
||||
private $subscriber;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="MailPoet\Entities\UserAgentEntity")
|
||||
* @var UserAgentEntity|null
|
||||
*/
|
||||
private $userAgent;
|
||||
|
||||
public function __construct(
|
||||
NewsletterEntity $newsletter,
|
||||
SendingQueueEntity $queue,
|
||||
@ -83,4 +89,12 @@ class StatisticsOpenEntity {
|
||||
public function setSubscriber($subscriber) {
|
||||
$this->subscriber = $subscriber;
|
||||
}
|
||||
|
||||
public function getUserAgent(): ?UserAgentEntity {
|
||||
return $this->userAgent;
|
||||
}
|
||||
|
||||
public function setUserAgent(?UserAgentEntity $userAgent): void {
|
||||
$this->userAgent = $userAgent;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user