1
0
mirror of synced 2024-11-22 11:56:03 +03:00

add note field support

This commit is contained in:
Pavel 2023-05-24 16:04:21 +03:00 committed by GitHub
commit 516e7855a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View File

@ -121,6 +121,15 @@ class Message implements ModelInterface
*/ */
private $content; private $content;
/**
* @var string $note
*
* @Type("string")
* @Accessor(getter="getNote",setter="setNote")
* @SkipWhenEmpty()
*/
private $note;
/** /**
* @var bool $isRead * @var bool $isRead
* *
@ -378,6 +387,22 @@ class Message implements ModelInterface
$this->content = $content; $this->content = $content;
} }
/**
* @return string|null
*/
public function getNote(): ?string
{
return $this->note;
}
/**
* @param string $note
*/
public function setNote(string $note): void
{
$this->note = $note;
}
/** /**
* @return bool|null * @return bool|null
*/ */

View File

@ -63,6 +63,7 @@
"first_name": "Иванов Иван" "first_name": "Иванов Иван"
}, },
"content": "❤️", "content": "❤️",
"note": "!",
"quote": null, "quote": null,
"channel_id": 61, "channel_id": 61,
"created_at": "2019-05-20T12:24:52Z", "created_at": "2019-05-20T12:24:52Z",