Generate constructors for entities
[PREMIUM-142]
This commit is contained in:
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user