src/Entity/PromocionTranslation.php line 16
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
- /**
- * PromocionTranslation
- * @ORM\Entity
- * @ORM\Table("promocion_translation")
- */
- class PromocionTranslation implements TranslationInterface
- {
- use TranslationTrait;
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="alt", type="string", length=255)
- */
- private $alt;
- /**
- * @var string
- *
- * @ORM\Column(name="oferta", type="string", length=255)
- */
- private $oferta;
- /**
- * @var string
- *
- * @ORM\Column(name="texto", type="string", length=400)
- */
- private $texto;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set texto
- *
- * @param string $texto
- * @return PromocionIdioma
- */
- public function setTexto($texto)
- {
- $this->texto = $texto;
- return $this;
- }
- /**
- * Get texto
- *
- * @return string
- */
- public function getTexto()
- {
- return $this->texto;
- }
- /**
- * Set alt
- *
- * @param string $alt
- * @return PromocionIdioma
- */
- public function setAlt($alt)
- {
- $this->alt = $alt;
- return $this;
- }
- /**
- * Get alt
- *
- * @return string
- */
- public function getAlt()
- {
- return $this->alt;
- }
- public function getOferta(): ?string
- {
- return $this->oferta;
- }
- public function setOferta(string $oferta): self
- {
- $this->oferta = $oferta;
- return $this;
- }
- }