src/Entity/ProvinciaTranslation.php line 19
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
- use Knp\DoctrineBehaviors\Model\Sluggable\SluggableTrait;
- use Knp\DoctrineBehaviors\Contract\Entity\SluggableInterface;
- /**
- * ProvinciaIdioma
- *
- * @ORM\Table(name="provincia_translation")
- * @ORM\Entity
- */
- class ProvinciaTranslation implements TranslationInterface//, SluggableInterface
- {
- use TranslationTrait;
- // use SluggableTrait;
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="texto", type="string", length=400,nullable=true)
- */
- private $texto;
- /**
- * @var string
- *
- * @ORM\Column(name="alt", type="string", length=255, nullable=true)
- *
- */
- private $alt;
- /**
- * @var string
- *
- * @ORM\Column(name="titulo", type="string", length=255)
- */
- private $titulo;
- /**
- * @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="descripcion_imagen", type="string", length=255, nullable=true)
- */
- private $descripcionImagen = "";
- /**
- * @var string
- *
- * @ORM\Column(name="slug", type="string", length=255, nullable=true)
- */
- private $slug;
- public function getSluggableFields(): array
- {
- return ['titulo'];
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set texto
- *
- * @param string $texto
- * @return ProvinciaIdioma
- */
- public function setTexto($texto)
- {
- $this->texto = $texto;
- return $this;
- }
- /**
- * Get texto
- *
- * @return string
- */
- public function getTexto()
- {
- return $this->texto;
- }
- /**
- * Get titulo
- *
- * @return integer
- */
- public function getTitulo()
- {
- return $this->titulo;
- }
- /**
- * Set titulo
- *
- * @param integer
- */
- public function setTitulo($titulo){
- $this->titulo = $titulo;
- return $this;
- }
- /**
- * Get provincia
- *
- * @return integer
- */
- public function getProvincia()
- {
- return $this->provincia;
- }
- /**
- * Set metaKeywords
- *
- * @param string $metaKeywords
- * @return Entrada
- */
- 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 Entrada
- */
- public function setMetaDescription($metaDescription)
- {
- $this->metaDescription = $metaDescription;
- return $this;
- }
- /**
- * Get metaDescription
- *
- * @return string
- */
- public function getMetaDescription()
- {
- return $this->metaDescription;
- }
- /**
- * Set metaTitle
- *
- * @param string $metaTitle
- * @return Entrada
- */
- public function setMetaTitle($metaTitle)
- {
- $this->metaTitle = $metaTitle;
- return $this;
- }
- /**
- * Get metaTitle
- *
- * @return string
- */
- public function getMetaTitle()
- {
- return $this->metaTitle;
- }
- /**
- * Set descripcionImagen
- *
- * @param string $descripcionImagen
- * @return Entrada
- */
- public function setDescripcionImagen($descripcionImagen)
- {
- $this->descripcionImagen = $descripcionImagen;
- return $this;
- }
- /**
- * Get descripcionImagen
- *
- * @return string
- */
- public function getDescripcionImagen()
- {
- return $this->descripcionImagen;
- }
- /**
- * Get alt
- *
- * @return string
- */
- public function getAlt(){
- return $this->alt;
- }
- /**
- * Set alt
- * @param string $alt
- * @return PromocionIdioma
- */
- public function setAlt($alt){
- $this->alt = $alt;
- return $this;
- }
- public function getSlug(): ?string
- {
- return $this->slug;
- }
- public function setSlug(?string $slug): self
- {
- $this->slug = $slug;
- return $this;
- }
- }