Skip to content

Commit

Permalink
Add Item transcription
Browse files Browse the repository at this point in the history
  • Loading branch information
opheugene committed Sep 13, 2024
1 parent 4b6e9e0 commit 5da993d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Bot/Model/Entity/Message/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -96,4 +105,20 @@ public function setCaption(string $caption)
{
$this->caption = $caption;
}

/**
* @return string|null
*/
public function getTranscription()
{
return $this->transcription;
}

/**
* @param string $transcription
*/
public function setTranscription(string $transcription)

Check failure on line 120 in src/Bot/Model/Entity/Message/Item.php

View workflow job for this annotation

GitHub Actions / test (7.3)

Method RetailCrm\Mg\Bot\Model\Entity\Message\Item::setTranscription() has no return typehint specified.

Check failure on line 120 in src/Bot/Model/Entity/Message/Item.php

View workflow job for this annotation

GitHub Actions / test (7.4)

Method RetailCrm\Mg\Bot\Model\Entity\Message\Item::setTranscription() has no return typehint specified.

Check failure on line 120 in src/Bot/Model/Entity/Message/Item.php

View workflow job for this annotation

GitHub Actions / test (8.0)

Method RetailCrm\Mg\Bot\Model\Entity\Message\Item::setTranscription() has no return typehint specified.

Check failure on line 120 in src/Bot/Model/Entity/Message/Item.php

View workflow job for this annotation

GitHub Actions / test (8.1)

Method RetailCrm\Mg\Bot\Model\Entity\Message\Item::setTranscription() has no return typehint specified.
{
$this->transcription = $transcription;
}
}

0 comments on commit 5da993d

Please sign in to comment.