src/Entity/LocalidadTranslation.php line 18
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
- /**
- * LocalidadIdioma
- *
- * @ORM\Table(name="localidad_translation")
- * @ORM\Entity(repositoryClass="App\Repository\LocalidadTranslationRepository")
- * @ORM\Entity
- */
- class LocalidadTranslation 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="title", type="string", length=255)
- */
- private $title;
- /**
- * @var string
- *
- * @ORM\Column(name="meta_keywords", type="string", length=255, nullable=true)
- */
- private $metaKeywords = "";
- /**
- * @var string
- *
- * @ORM\Column(name="meta_description", type="string", length=255, nullable=true)
- */
- private $metaDescription = "";
- /**
- * @var string
- *
- * @ORM\Column(name="meta_title", type="string", length=255, nullable=true)
- */
- private $metaTitle = "";
- /**
- * @var string
- *
- * @ORM\Column(name="texto", type="text" ,nullable=true)
- */
- private $texto;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set localidad
- *
- * @param integer $localidad
- * @return LocalidadIdioma
- */
- public function setLocalidad($localidad)
- {
- $this->localidad = $localidad;
- return $this;
- }
- /**
- * Get localidad
- *
- * @return integer
- */
- public function getLocalidad()
- {
- return $this->localidad;
- }
- /**
- * Get title
- *
- * @return integer
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Set title
- *
- * @param string $title
- * @return LocalidadIdioma
- */
- public function setTitle($title)
- {
- $this->title = $title;
- return $this;
- }
- /**
- * Set idioma
- *
- * @param integer $idioma
- * @return LocalidadIdioma
- */
- public function setIdioma($idioma)
- {
- $this->idioma = $idioma;
- return $this;
- }
- /**
- * Set metaKeywords
- *
- * @param string $metaKeywords
- * @return LocalidadIdioma
- */
- public function setMetaKeywords($metaKeywords)
- {
- $this->metaKeywords = $metaKeywords;
- return $this;
- }
- /**
- * Get metaKeywords
- *
- * @return string
- */
- public function getMetaKeywords()
- {
- return $this->metaKeywords;
- }
- /**
- * Set metaDescription
- *
- * @param string $metaDescription
- * @return LocalidadIdioma
- */
- public function setMetaDescription($metaDescription)
- {
- $this->metaDescription = $metaDescription;
- return $this;
- }
- /**
- * Set campoTexto
- *
- * @param string campoTexto
- * @return LocalidadIdioma
- */
- public function setCampoTexto($campoTexto)
- {
- $this->campoTexto = $campoTexto;
- return $this;
- }
- /**
- * Get campoTexto
- *
- * @return string
- */
- public function getCampoTexto()
- {
- return $this->campoTexto;
- }
- /**
- * Get metaDescription
- *
- * @return string
- */
- public function getMetaDescription()
- {
- return $this->metaDescription;
- }
- /**
- * Set metaTitle
- *
- * @param string $metaTitle
- * @return LocalidadIdioma
- */
- public function setMetaTitle($metaTitle)
- {
- $this->metaTitle = $metaTitle;
- return $this;
- }
- /**
- * Get metaTitle
- *
- * @return string
- */
- public function getMetaTitle()
- {
- return $this->metaTitle;
- }
- /**
- * Get idioma
- *
- * @return integer
- */
- public function getIdioma()
- {
- return $this->idioma;
- }
- /**
- * Set texto
- *
- * @param string $texto
- * @return LocalidadIdioma
- */
- public function setTexto($texto)
- {
- $this->texto = $texto;
- return $this;
- }
- /**
- * Get texto
- *
- * @return string
- */
- public function getTexto()
- {
- return $this->texto;
- }
- /**
- * Set traducciones
- *
- * @param ArrayCollection $traducciones
- * @return Localidad
- */
- public function setTraducciones($traducciones)
- {
- $this->traducciones = $traducciones;
- return $this;
- }
- /**
- * add traducciones
- *
- * @param traducciones $traduccion
- * @return Localidad
- */
- public function addTraduccion(LocalidadIdioma $traduccion)
- {
- $this->traducciones[]=$traduccion;
- return $this;
- }
- /**
- * remove traduccion
- *
- * @param traducciones $traduccion
- * @return Localidad
- */
- public function removeTraduccion(LocalidadIdioma $traduccion)
- {
- //$this->traducciones[]=$traduccion;
- return $this;
- }
- /**
- * Get traducciones
- *
- * @return ArrayCollection
- */
- public function getTraducciones()
- {
- return $this->traducciones;
- }
- }