Add chat reply_deadline field
This commit is contained in:
commit
4b6e9e0dff
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
"author_id": 0,
|
"author_id": 0,
|
||||||
"last_message": null,
|
"last_message": null,
|
||||||
"last_activity": "2019-06-11T17:36:20+03:00",
|
"last_activity": "2019-06-11T17:36:20+03:00",
|
||||||
|
"reply_deadline": "2019-06-18T17:36:20Z",
|
||||||
"created_at": "2019-06-11T12:49:26.938879Z",
|
"created_at": "2019-06-11T12:49:26.938879Z",
|
||||||
"updated_at": "2019-06-14T14:40:28.7111Z"
|
"updated_at": "2019-06-14T14:40:28.7111Z"
|
||||||
},
|
},
|
||||||
@ -129,6 +130,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"last_activity": "2019-06-13T11:07:14+03:00",
|
"last_activity": "2019-06-13T11:07:14+03:00",
|
||||||
|
"reply_deadline": "2019-06-20T11:07:14Z",
|
||||||
"created_at": "2019-06-11T07:34:16.082957Z",
|
"created_at": "2019-06-11T07:34:16.082957Z",
|
||||||
"updated_at": "2019-06-16T08:10:28.657972Z"
|
"updated_at": "2019-06-16T08:10:28.657972Z"
|
||||||
},
|
},
|
||||||
@ -201,6 +203,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"last_activity": "2019-06-13T11:07:14+03:00",
|
"last_activity": "2019-06-13T11:07:14+03:00",
|
||||||
|
"reply_deadline":"2019-06-20T11:07:14Z",
|
||||||
"created_at": "2019-06-11T07:34:16Z",
|
"created_at": "2019-06-11T07:34:16Z",
|
||||||
"updated_at": "2019-06-16T08:10:28Z"
|
"updated_at": "2019-06-16T08:10:28Z"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user