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;
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
*/