src/Entity/OficinaTranslation.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;
- /**
- * OficinaIdioma
- *
- * @ORM\Table(name="oficina_translation")
- * @ORM\Entity
- */
- class OficinaTranslation 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="indicaciones", type="string", length=1000, nullable=true)
- */
- private $indicaciones;
- /**
- * @var string
- *
- * @ORM\Column(name="alt", type="string", length=255, nullable=true)
- *
- */
- private $alt;
- /**
- * @var string
- *
- * @ORM\Column(name="serviciosTexto", type="string", length=1000, nullable=true)
- */
- private $serviciosTexto;
- /**
- * @var string
- *
- * @ORM\Column(name="title", type="string", length=255, nullable=true)
- */
- private $title;
- /**
- * @var string
- *
- * @ORM\Column(name="descripcion", type="string", length=1000, nullable=true)
- */
- private $descripcion;
- /**
- * @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="nombre", type="string", length=100, nullable=false)
- */
- private $nombre;
- /**
- * @var string
- *
- * @ORM\Column(name="slug", type="string", length=255, nullable=true)
- */
- private $slug;
- public function getSluggableFields(): array
- {
- return ['nombre'];
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set indicaciones
- *
- * @param string $indicaciones
- * @return OficinaIdioma
- */
- public function setIndicaciones($indicaciones)
- {
- $this->indicaciones = $indicaciones;
- return $this;
- }
- /**
- * Get indicaciones
- *
- * @return string
- */
- public function getIndicaciones()
- {
- return $this->indicaciones;
- }
- /**
- * Set serviciosTexto
- *
- * @param string $serviciosTexto
- * @return OficinaIdioma
- */
- public function setServiciosTexto($serviciosTexto)
- {
- $this->serviciosTexto = $serviciosTexto;
- return $this;
- }
- /**
- * Get serviciosTexto
- *
- * @return string
- */
- public function getServiciosTexto()
- {
- return $this->serviciosTexto;
- }
- /**
- * Set descripcion
- *
- * @param string $descripcion
- * @return OficinaIdioma
- */
- public function setDescripcion($descripcion)
- {
- $this->descripcion = $descripcion;
- return $this;
- }
- /**
- * Get nombre
- *
- * @return string
- */
- public function getNombre()
- {
- return $this->nombre;
- }
- /**
- * Set nombre
- *
- * @param string $nombre
- * @return OficinaIdioma
- */
- public function setNombre($nombre)
- {
- $this->nombre = $nombre;
- return $this;
- }
- /**
- * Get descripcion
- *
- * @return string
- */
- public function getDescripcion()
- {
- return $this->descripcion;
- }
- /**
- * 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 title
- *
- * @param string $title
- * @return Entrada
- */
- public function setTitle($title)
- {
- $this->title = $title;
- return $this;
- }
- /**
- * Get title
- *
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * Get alt
- *
- * @return string
- */
- public function getAlt(){
- return $this->alt;
- }
- /**
- * Set alt
- * @param string $alt
- * @return OficinaIdioma
- */
- public function setAlt($alt){
- $this->alt = $alt;
- return $this;
- }
- /**
- * Get alt
- *
- * @return string
- */
- public function getSlug(){
- return $this->slug;
- }
- /**
- * Set alt
- * @param string $alt
- * @return OficinaIdioma
- */
- public function setSlug($slug){
- $this->slug = $slug;
- return $this;
- }
- }