Add endpoint for subscriber statistics

[MAILPOET-3069]
This commit is contained in:
Pavel Dohnal
2020-08-05 15:11:22 +02:00
committed by Veljko V
parent c1c5885398
commit d96d207c53
4 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace MailPoet\Subscribers\Statistics;
class SubscriberStatistics {
/** @var int */
private $clickCount;
/** @var int */
private $openCount;
/** @var int */
private $totalSentCount;
public function __construct($clickCount, $openCount, $totalSentCount) {
$this->clickCount = $clickCount;
$this->openCount = $openCount;
$this->totalSentCount = $totalSentCount;
}
/**
* @return int
*/
public function getClickCount(): int {
return $this->clickCount;
}
/**
* @return int
*/
public function getOpenCount(): int {
return $this->openCount;
}
/**
* @return int
*/
public function getTotalSentCount(): int {
return $this->totalSentCount;
}
}