src/Entity/PromocionTranslation.php line 16

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  5. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  6. /**
  7.  * PromocionTranslation
  8.  * @ORM\Entity
  9.  * @ORM\Table("promocion_translation")
  10.  */
  11. class PromocionTranslation implements TranslationInterface
  12. {
  13.     use TranslationTrait;
  14.     /**
  15.      * @var integer
  16.      *
  17.      * @ORM\Column(name="id", type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="alt", type="string", length=255)
  26.      */
  27.     private $alt;
  28.     
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="oferta", type="string", length=255)
  33.      */
  34.     private $oferta;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="texto", type="string", length=400)
  39.      */
  40.     private $texto;
  41.     /**
  42.      * Get id
  43.      *
  44.      * @return integer 
  45.      */
  46.     public function getId()
  47.     {
  48.         return $this->id;
  49.     }
  50.     /**
  51.      * Set texto
  52.      *
  53.      * @param string $texto
  54.      * @return PromocionIdioma
  55.      */
  56.     public function setTexto($texto)
  57.     {
  58.         $this->texto $texto;
  59.         return $this;
  60.     }
  61.     /**
  62.      * Get texto
  63.      *
  64.      * @return string 
  65.      */
  66.     public function getTexto()
  67.     {
  68.         return $this->texto;
  69.     }
  70.     /**
  71.      * Set alt
  72.      *
  73.      * @param string $alt
  74.      * @return PromocionIdioma
  75.      */
  76.     public function setAlt($alt)
  77.     {
  78.         $this->alt $alt;
  79.         return $this;
  80.     }
  81.     /**
  82.      * Get alt
  83.      *
  84.      * @return string
  85.      */
  86.     public function getAlt()
  87.     {
  88.         return $this->alt;
  89.     }
  90.     public function getOferta(): ?string
  91.     {
  92.         return $this->oferta;
  93.     }
  94.     public function setOferta(string $oferta): self
  95.     {
  96.         $this->oferta $oferta;
  97.         return $this;
  98.     }
  99. }