Differentiate machine and humans opens on subscriber stats API

[MAILPOET-3741]
This commit is contained in:
Rostislav Wolny
2021-08-26 15:15:34 +02:00
committed by Veljko V
parent bbf19d07c8
commit 14ff48c7fa
3 changed files with 35 additions and 18 deletions

View File

@@ -12,36 +12,35 @@ class SubscriberStatistics {
/** @var int */
private $openCount;
/** @var int */
private $machineOpenCount;
/** @var int */
private $totalSentCount;
/** @var WooCommerceRevenue|null */
private $wooCommerceRevenue;
public function __construct($clickCount, $openCount, $totalSentCount, $wooCommerceRevenue = null) {
public function __construct($clickCount, $openCount, $machineOpenCount, $totalSentCount, $wooCommerceRevenue = null) {
$this->clickCount = $clickCount;
$this->openCount = $openCount;
$this->machineOpenCount = $machineOpenCount;
$this->totalSentCount = $totalSentCount;
$this->wooCommerceRevenue = $wooCommerceRevenue;
}
/**
* @return int
*/
public function getClickCount(): int {
return $this->clickCount;
}
/**
* @return int
*/
public function getOpenCount(): int {
return $this->openCount;
}
/**
* @return int
*/
public function getMachineOpenCount(): int {
return $this->machineOpenCount;
}
public function getTotalSentCount(): int {
return $this->totalSentCount;
}