From bcf3d0974b96f19ba9d9d880fa153dfa004726f7 Mon Sep 17 00:00:00 2001 From: Alex Komarichev Date: Tue, 13 Aug 2024 19:52:44 +0300 Subject: [PATCH] Add chat reply_deadline field --- src/Bot/Model/Entity/Chat/Chat.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/Bot/Model/Entity/Chat/Chat.php b/src/Bot/Model/Entity/Chat/Chat.php index f396fad..063c089 100644 --- a/src/Bot/Model/Entity/Chat/Chat.php +++ b/src/Bot/Model/Entity/Chat/Chat.php @@ -113,6 +113,14 @@ class Chat implements ModelInterface */ private $lastActivity; + /** + * @var \DateTime $replyDeadline + * + * @Type("DateTime<'Y-m-d\TH:i:sP'>") + * @Accessor(getter="getReplyDeadline",setter="setReplyDeadline") + */ + private $replyDeadline; + /** * @return string|null */ @@ -288,4 +296,20 @@ class Chat implements ModelInterface { $this->lastActivity = $lastActivity; } + + /** + * @return \DateTime + */ + public function getReplyDeadline(): ?\DateTime + { + return $this->replyDeadline; + } + + /** + * @param \DateTime $replyDeadline + */ + public function setReplyDeadline(\DateTime $replyDeadline): void + { + $this->replyDeadline = $replyDeadline; + } }