From 22e4bf9cac7c7b0b47a22bc3a825ab650edad98c Mon Sep 17 00:00:00 2001 From: Alex Komarichev Date: Fri, 11 Apr 2025 16:19:28 +0300 Subject: [PATCH] Utm information in dialog --- src/Bot/Model/Entity/Dialog.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/Bot/Model/Entity/Dialog.php b/src/Bot/Model/Entity/Dialog.php index d17e678..fa1221a 100644 --- a/src/Bot/Model/Entity/Dialog.php +++ b/src/Bot/Model/Entity/Dialog.php @@ -119,6 +119,15 @@ class Dialog implements ModelInterface */ private $isActive; + /** + * @var Utm $utm + * + * @Type("RetailCrm\Mg\Bot\Model\Entity\Utm") + * @Accessor(getter="getUtm",setter="setUtm") + * @SkipWhenEmpty() + */ + private $utm; + /** * @return string|null */ @@ -294,4 +303,21 @@ class Dialog implements ModelInterface { $this->isActive = $isActive; } + + /** + * @return Utm|null + */ + public function getUtm(): ?Utm + { + return $this->utm; + } + + /** + * @param Utm $utm + * @return void + */ + public function setUtm(Utm $utm): void + { + $this->utm = $utm; + } }