diff --git a/src/Bot/Model/Entity/Message/Item.php b/src/Bot/Model/Entity/Message/Item.php index 8e1df1b..8bb14bb 100644 --- a/src/Bot/Model/Entity/Message/Item.php +++ b/src/Bot/Model/Entity/Message/Item.php @@ -49,6 +49,15 @@ class Item implements ModelInterface */ private $caption; + /** + * @var string $transcription + * + * @Type("string") + * @Accessor(getter="getTranscription",setter="setTranscription") + * @SkipWhenEmpty() + */ + private $transcription; + /** * @return string|null */ @@ -96,4 +105,20 @@ class Item implements ModelInterface { $this->caption = $caption; } + + /** + * @return string|null + */ + public function getTranscription(): ?string + { + return $this->transcription; + } + + /** + * @param string $transcription + */ + public function setTranscription(string $transcription): void + { + $this->transcription = $transcription; + } }