add note field support
This commit is contained in:
parent
c024350882
commit
016f152fef
@ -121,6 +121,15 @@ class Message implements ModelInterface
|
||||
*/
|
||||
private $content;
|
||||
|
||||
/**
|
||||
* @var string $note
|
||||
*
|
||||
* @Type("string")
|
||||
* @Accessor(getter="getNote",setter="setNote")
|
||||
* @SkipWhenEmpty()
|
||||
*/
|
||||
private $note;
|
||||
|
||||
/**
|
||||
* @var bool $isRead
|
||||
*
|
||||
@ -378,6 +387,22 @@ class Message implements ModelInterface
|
||||
$this->content = $content;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNote(): ?string
|
||||
{
|
||||
return $this->note;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $note
|
||||
*/
|
||||
public function setNote(string $note)
|
||||
{
|
||||
$this->note = $note;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool|null
|
||||
*/
|
||||
|
@ -63,6 +63,7 @@
|
||||
"first_name": "Иванов Иван"
|
||||
},
|
||||
"content": "❤️",
|
||||
"note": "!️",
|
||||
"quote": null,
|
||||
"channel_id": 61,
|
||||
"created_at": "2019-05-20T12:24:52Z",
|
||||
|
Loading…
Reference in New Issue
Block a user