Initial commit: CloudOps infrastructure platform

This commit is contained in:
root
2026-04-09 19:58:57 +02:00
commit 1166a52f26
7762 changed files with 839452 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
<?php
namespace Mautic\EmailBundle\Stat;
use Mautic\EmailBundle\Entity\Stat;
class Reference
{
private ?int $emailId;
/**
* @var int
*/
private $leadId = 0;
private ?string $statId;
public function __construct(Stat $stat)
{
$this->statId = $stat->getId();
$this->emailId = $stat->getEmail()->getId();
if ($lead = $stat->getLead()) {
$this->leadId = $lead->getId();
}
}
/**
* @return int
*/
public function getEmailId()
{
return $this->emailId;
}
/**
* @return int
*/
public function getLeadId()
{
return $this->leadId;
}
public function getStatId(): ?string
{
return $this->statId;
}
}