src/Entity/LocalidadTranslation.php line 18

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  7. /**
  8.  * LocalidadIdioma
  9.  *
  10.  * @ORM\Table(name="localidad_translation")
  11.  * @ORM\Entity(repositoryClass="App\Repository\LocalidadTranslationRepository")
  12.  * @ORM\Entity
  13.  */
  14. class LocalidadTranslation implements TranslationInterface
  15. {
  16.     use TranslationTrait;
  17.     
  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="title", type="string", length=255)
  30.      */
  31.     private $title;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="meta_keywords", type="string", length=255, nullable=true)
  36.      */
  37.     private $metaKeywords "";
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="meta_description", type="string", length=255, nullable=true)
  42.      */
  43.     private $metaDescription "";
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="meta_title", type="string", length=255, nullable=true)
  48.      */
  49.     private $metaTitle "";
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="texto", type="text" ,nullable=true)
  54.      */
  55.     private $texto;
  56.     /**
  57.      * Get id
  58.      *
  59.      * @return integer
  60.      */
  61.     public function getId()
  62.     {
  63.         return $this->id;
  64.     }
  65.     /**
  66.      * Set localidad
  67.      *
  68.      * @param integer $localidad
  69.      * @return LocalidadIdioma
  70.      */
  71.     public function setLocalidad($localidad)
  72.     {
  73.         $this->localidad $localidad;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get localidad
  78.      *
  79.      * @return integer
  80.      */
  81.     public function getLocalidad()
  82.     {
  83.         return $this->localidad;
  84.     }
  85.     /**
  86.      * Get title
  87.      *
  88.      * @return integer
  89.      */
  90.     public function getTitle()
  91.     {
  92.         return $this->title;
  93.     }
  94.     /**
  95.      * Set title
  96.      *
  97.      * @param string $title
  98.      * @return LocalidadIdioma
  99.      */
  100.     public function setTitle($title)
  101.     {
  102.         $this->title $title;
  103.         return $this;
  104.     }
  105.     /**
  106.      * Set idioma
  107.      *
  108.      * @param integer $idioma
  109.      * @return LocalidadIdioma
  110.      */
  111.     public function setIdioma($idioma)
  112.     {
  113.         $this->idioma $idioma;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Set metaKeywords
  118.      *
  119.      * @param string $metaKeywords
  120.      * @return LocalidadIdioma
  121.      */
  122.     public function setMetaKeywords($metaKeywords)
  123.     {
  124.         $this->metaKeywords $metaKeywords;
  125.         return $this;
  126.     }
  127.     /**
  128.      * Get metaKeywords
  129.      *
  130.      * @return string
  131.      */
  132.     public function getMetaKeywords()
  133.     {
  134.         return $this->metaKeywords;
  135.     }
  136.     /**
  137.      * Set metaDescription
  138.      *
  139.      * @param string $metaDescription
  140.      * @return LocalidadIdioma
  141.      */
  142.     public function setMetaDescription($metaDescription)
  143.     {
  144.         $this->metaDescription $metaDescription;
  145.         return $this;
  146.     }
  147.     /**
  148.      * Set campoTexto
  149.      *
  150.      * @param string campoTexto
  151.      * @return LocalidadIdioma
  152.      */
  153.     public function setCampoTexto($campoTexto)
  154.     {
  155.         $this->campoTexto $campoTexto;
  156.         return $this;
  157.     }
  158.     /**
  159.      * Get campoTexto
  160.      *
  161.      * @return string
  162.      */
  163.     public function getCampoTexto()
  164.     {
  165.         return $this->campoTexto;
  166.     }
  167.     /**
  168.      * Get metaDescription
  169.      *
  170.      * @return string
  171.      */
  172.     public function getMetaDescription()
  173.     {
  174.         return $this->metaDescription;
  175.     }
  176.     /**
  177.      * Set metaTitle
  178.      *
  179.      * @param string $metaTitle
  180.      * @return LocalidadIdioma
  181.      */
  182.     public function setMetaTitle($metaTitle)
  183.     {
  184.         $this->metaTitle $metaTitle;
  185.         return $this;
  186.     }
  187.     /**
  188.      * Get metaTitle
  189.      *
  190.      * @return string
  191.      */
  192.     public function getMetaTitle()
  193.     {
  194.         return $this->metaTitle;
  195.     }
  196.     /**
  197.      * Get idioma
  198.      *
  199.      * @return integer
  200.      */
  201.     public function getIdioma()
  202.     {
  203.         return $this->idioma;
  204.     }
  205.     /**
  206.      * Set texto
  207.      *
  208.      * @param string $texto
  209.      * @return LocalidadIdioma
  210.      */
  211.     public function setTexto($texto)
  212.     {
  213.         $this->texto $texto;
  214.         return $this;
  215.     }
  216.     /**
  217.      * Get texto
  218.      *
  219.      * @return string
  220.      */
  221.     public function getTexto()
  222.     {
  223.         return $this->texto;
  224.     }
  225.     /**
  226.      * Set traducciones
  227.      *
  228.      * @param ArrayCollection $traducciones
  229.      * @return Localidad
  230.      */
  231.     public function setTraducciones($traducciones)
  232.     {
  233.         $this->traducciones $traducciones;
  234.         return $this;
  235.     }
  236.     /**
  237.      * add traducciones
  238.      *
  239.      * @param traducciones $traduccion
  240.      * @return Localidad
  241.      */
  242.     public function addTraduccion(LocalidadIdioma $traduccion)
  243.     {
  244.         $this->traducciones[]=$traduccion;
  245.         return $this;
  246.     }
  247.     /**
  248.      * remove traduccion
  249.      *
  250.      * @param traducciones $traduccion
  251.      * @return Localidad
  252.      */
  253.     public function removeTraduccion(LocalidadIdioma $traduccion)
  254.     {
  255.         //$this->traducciones[]=$traduccion;
  256.         return $this;
  257.     }
  258.     /**
  259.      * Get traducciones
  260.      *
  261.      * @return ArrayCollection
  262.      */
  263.     public function getTraducciones()
  264.     {
  265.         return $this->traducciones;
  266.     }
  267. }