1
0
mirror of synced 2024-11-28 22:16:02 +03:00

Add chat reply_deadline field

This commit is contained in:
Alex Komarichev 2024-08-13 19:52:44 +03:00
parent 6e4dd6af44
commit bcf3d0974b

View File

@ -113,6 +113,14 @@ class Chat implements ModelInterface
*/ */
private $lastActivity; private $lastActivity;
/**
* @var \DateTime $replyDeadline
*
* @Type("DateTime<'Y-m-d\TH:i:sP'>")
* @Accessor(getter="getReplyDeadline",setter="setReplyDeadline")
*/
private $replyDeadline;
/** /**
* @return string|null * @return string|null
*/ */
@ -288,4 +296,20 @@ class Chat implements ModelInterface
{ {
$this->lastActivity = $lastActivity; $this->lastActivity = $lastActivity;
} }
/**
* @return \DateTime
*/
public function getReplyDeadline(): ?\DateTime
{
return $this->replyDeadline;
}
/**
* @param \DateTime $replyDeadline
*/
public function setReplyDeadline(\DateTime $replyDeadline): void
{
$this->replyDeadline = $replyDeadline;
}
} }