Add constructor to entity
[MAILPOET-2503]
This commit is contained in:
committed by
Jack Kitterhing
parent
a5679a5dbf
commit
a92af3095b
@@ -19,14 +19,14 @@ class StatisticsWooCommercePurchaseEntity {
|
|||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity="MailPoet\Entities\NewsletterEntity")
|
* @ORM\ManyToOne(targetEntity="MailPoet\Entities\NewsletterEntity")
|
||||||
* @ORM\JoinColumn(name="newsletter_id", referencedColumnName="id")
|
* @ORM\JoinColumn(name="newsletter_id", referencedColumnName="id")
|
||||||
* @var NewsletterEntity|null
|
* @var NewsletterEntity
|
||||||
*/
|
*/
|
||||||
private $newsletter;
|
private $newsletter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity="MailPoet\Entities\SendingQueueEntity")
|
* @ORM\ManyToOne(targetEntity="MailPoet\Entities\SendingQueueEntity")
|
||||||
* @ORM\JoinColumn(name="queue_id", referencedColumnName="id")
|
* @ORM\JoinColumn(name="queue_id", referencedColumnName="id")
|
||||||
* @var SendingQueueEntity|null
|
* @var SendingQueueEntity
|
||||||
*/
|
*/
|
||||||
private $queue;
|
private $queue;
|
||||||
|
|
||||||
@@ -40,13 +40,13 @@ class StatisticsWooCommercePurchaseEntity {
|
|||||||
/**
|
/**
|
||||||
* @ORM\ManyToOne(targetEntity="MailPoet\Entities\StatisticsClickEntity")
|
* @ORM\ManyToOne(targetEntity="MailPoet\Entities\StatisticsClickEntity")
|
||||||
* @ORM\JoinColumn(name="click_id", referencedColumnName="id")
|
* @ORM\JoinColumn(name="click_id", referencedColumnName="id")
|
||||||
* @var StatisticsClickEntity|null
|
* @var StatisticsClickEntity
|
||||||
*/
|
*/
|
||||||
private $click;
|
private $click;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="integer")
|
* @ORM\Column(type="integer")
|
||||||
* @var int|null
|
* @var int
|
||||||
*/
|
*/
|
||||||
private $orderId;
|
private $orderId;
|
||||||
|
|
||||||
@@ -61,4 +61,13 @@ class StatisticsWooCommercePurchaseEntity {
|
|||||||
* @var float
|
* @var float
|
||||||
*/
|
*/
|
||||||
private $orderPriceTotal;
|
private $orderPriceTotal;
|
||||||
|
|
||||||
|
public function __construct(NewsletterEntity $newsletter, SendingQueueEntity $queue, StatisticsClickEntity $click, int $orderId, string $orderCurrency, float $orderPriceTotal ) {
|
||||||
|
$this->newsletter = $newsletter;
|
||||||
|
$this->queue = $queue;
|
||||||
|
$this->click = $click;
|
||||||
|
$this->orderId = $orderId;
|
||||||
|
$this->orderCurrency = $orderCurrency;
|
||||||
|
$this->orderPriceTotal = $orderPriceTotal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user