src/Entity/ProvinciaTranslation.php line 19

  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. use Knp\DoctrineBehaviors\Model\Sluggable\SluggableTrait;
  7. use Knp\DoctrineBehaviors\Contract\Entity\SluggableInterface;
  8. /**
  9.  * ProvinciaIdioma
  10.  *
  11.  * @ORM\Table(name="provincia_translation")
  12.  * @ORM\Entity
  13.  */
  14. class ProvinciaTranslation implements TranslationInterface//, SluggableInterface
  15. {
  16.     use TranslationTrait;
  17. //     use SluggableTrait;
  18.     /**
  19.      * @var integer
  20.      *
  21.      * @ORM\Column(name="id", type="integer")
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="texto", type="string", length=400,nullable=true)
  30.      */
  31.     private $texto;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="alt", type="string", length=255, nullable=true)
  36.      *
  37.      */
  38.     private $alt;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="titulo", type="string", length=255)
  43.      */
  44.     private $titulo;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="meta_keywords", type="string", length=255, nullable=true)
  49.      */
  50.     private $metaKeywords "";
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="meta_description", type="string", length=255, nullable=true)
  55.      */
  56.     private $metaDescription "";
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="meta_title", type="string", length=255, nullable=true)
  61.      */
  62.     private $metaTitle "";
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="descripcion_imagen", type="string", length=255, nullable=true)
  67.      */
  68.     private $descripcionImagen "";
  69.     
  70.     
  71.     /**
  72.      * @var string
  73.      *
  74.      * @ORM\Column(name="slug", type="string", length=255, nullable=true)
  75.      */
  76.     private $slug;
  77.         
  78.     public function getSluggableFields(): array
  79.     {
  80.         return ['titulo'];
  81.     }       
  82.     
  83.     /**
  84.      * Get id
  85.      *
  86.      * @return integer
  87.      */
  88.     public function getId()
  89.     {
  90.         return $this->id;
  91.     }
  92.     /**
  93.      * Set texto
  94.      *
  95.      * @param string $texto
  96.      * @return ProvinciaIdioma
  97.      */
  98.     public function setTexto($texto)
  99.     {
  100.         $this->texto $texto;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Get texto
  105.      *
  106.      * @return string
  107.      */
  108.     public function getTexto()
  109.     {
  110.         return $this->texto;
  111.     }
  112.     /**
  113.      * Get titulo
  114.      *
  115.      * @return integer
  116.      */
  117.     public function getTitulo()
  118.     {
  119.         return $this->titulo;
  120.     }
  121.     /**
  122.      * Set titulo
  123.      *
  124.      * @param integer
  125.      */
  126.     public function setTitulo($titulo){
  127.       $this->titulo $titulo;
  128.       return $this;
  129.     }
  130.     /**
  131.      * Get provincia
  132.      *
  133.      * @return integer
  134.      */
  135.     public function getProvincia()
  136.     {
  137.         return $this->provincia;
  138.     }
  139.     
  140.     /**
  141.      * Set metaKeywords
  142.      *
  143.      * @param string $metaKeywords
  144.      * @return Entrada
  145.      */
  146.     public function setMetaKeywords($metaKeywords)
  147.     {
  148.         $this->metaKeywords $metaKeywords;
  149.         return $this;
  150.     }
  151.     /**
  152.      * Get metaKeywords
  153.      *
  154.      * @return string
  155.      */
  156.     public function getMetaKeywords()
  157.     {
  158.         return $this->metaKeywords;
  159.     }
  160.     /**
  161.      * Set metaDescription
  162.      *
  163.      * @param string $metaDescription
  164.      * @return Entrada
  165.      */
  166.     public function setMetaDescription($metaDescription)
  167.     {
  168.         $this->metaDescription $metaDescription;
  169.         return $this;
  170.     }
  171.     /**
  172.      * Get metaDescription
  173.      *
  174.      * @return string
  175.      */
  176.     public function getMetaDescription()
  177.     {
  178.         return $this->metaDescription;
  179.     }
  180.     /**
  181.      * Set metaTitle
  182.      *
  183.      * @param string $metaTitle
  184.      * @return Entrada
  185.      */
  186.     public function setMetaTitle($metaTitle)
  187.     {
  188.         $this->metaTitle $metaTitle;
  189.         return $this;
  190.     }
  191.     /**
  192.      * Get metaTitle
  193.      *
  194.      * @return string
  195.      */
  196.     public function getMetaTitle()
  197.     {
  198.         return $this->metaTitle;
  199.     }
  200.     /**
  201.      * Set descripcionImagen
  202.      *
  203.      * @param string $descripcionImagen
  204.      * @return Entrada
  205.      */
  206.     public function setDescripcionImagen($descripcionImagen)
  207.     {
  208.         $this->descripcionImagen $descripcionImagen;
  209.         return $this;
  210.     }
  211.     /**
  212.      * Get descripcionImagen
  213.      *
  214.      * @return string
  215.      */
  216.     public function getDescripcionImagen()
  217.     {
  218.         return $this->descripcionImagen;
  219.     }
  220.     /**
  221.      * Get alt
  222.      *
  223.      * @return string
  224.      */
  225.     public function getAlt(){
  226.         return $this->alt;
  227.     }
  228.     /**
  229.      * Set alt
  230.      * @param string $alt
  231.      * @return PromocionIdioma
  232.      */
  233.     public function setAlt($alt){
  234.         $this->alt $alt;
  235.         return $this;
  236.     }
  237.     public function getSlug(): ?string
  238.     {
  239.         return $this->slug;
  240.     }
  241.     public function setSlug(?string $slug): self
  242.     {
  243.         $this->slug $slug;
  244.         return $this;
  245.     }
  246. }