Generate constructors for entities

[PREMIUM-142]
This commit is contained in:
Pavel Dohnal
2020-05-12 12:34:30 +02:00
committed by Veljko V
parent 01915a1e0a
commit e0ca24a0ee
2 changed files with 24 additions and 0 deletions

View File

@ -50,6 +50,20 @@ class StatisticsClickEntity {
*/ */
private $count; private $count;
public function __construct(
NewsletterEntity $newsletter,
SendingQueueEntity $queue,
int $subscriberId,
NewsletterLinkEntity $link,
int $count
) {
$this->newsletter = $newsletter;
$this->queue = $queue;
$this->subscriberId = $subscriberId;
$this->link = $link;
$this->count = $count;
}
/** /**
* @return NewsletterEntity|null * @return NewsletterEntity|null
*/ */

View File

@ -36,6 +36,16 @@ class StatisticsOpenEntity {
*/ */
private $subscriberId; private $subscriberId;
public function __construct(
NewsletterEntity $newsletter,
SendingQueueEntity $queue,
int $subscriberId
) {
$this->newsletter = $newsletter;
$this->queue = $queue;
$this->subscriberId = $subscriberId;
}
/** /**
* @return NewsletterEntity|null * @return NewsletterEntity|null
*/ */