Improve typehints and doctypes for the woo revenue tracking

[MAILPOET-5014]
This commit is contained in:
Rostislav Wolny
2023-01-26 17:13:28 +01:00
committed by Aschepikov
parent 5d3b26bb58
commit f66be1b947
4 changed files with 13 additions and 17 deletions

View File

@@ -47,7 +47,7 @@ class StatisticsWooCommercePurchasesRepository extends Repository {
$this->flush();
}
public function getRevenuesByCampaigns() {
public function getRevenuesByCampaigns(): array {
$revenueStatsTable = $this->entityManager->getClassMetadata(StatisticsWooCommercePurchaseEntity::class)->getTableName();
$newsletterTable = $this->entityManager->getClassMetadata(NewsletterEntity::class)->getTableName();