src/Entity/OficinaTranslation.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.  * OficinaIdioma
  10.  *
  11.  * @ORM\Table(name="oficina_translation")
  12.  * @ORM\Entity
  13.  */
  14. class OficinaTranslation  implements TranslationInterface//, SluggableInterface
  15. {
  16.     use TranslationTrait;
  17.    // use SluggableTrait;
  18.     
  19.     /**
  20.      * @var integer
  21.      *
  22.      * @ORM\Column(name="id", type="integer")
  23.      * @ORM\Id
  24.      * @ORM\GeneratedValue(strategy="AUTO")
  25.      */
  26.     private $id;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="indicaciones", type="string", length=1000, nullable=true)
  31.      */
  32.     private $indicaciones;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="alt", type="string", length=255, nullable=true)
  37.      *
  38.      */
  39.     private $alt;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="serviciosTexto", type="string", length=1000, nullable=true)
  44.      */
  45.     private $serviciosTexto;
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  50.      */
  51.     private $title;
  52.     /**
  53.      * @var string
  54.      *
  55.      * @ORM\Column(name="descripcion", type="string", length=1000, nullable=true)
  56.      */
  57.     private $descripcion;
  58.     /**
  59.      * @var string
  60.      *
  61.      * @ORM\Column(name="meta_keywords", type="string", length=255, nullable=true)
  62.      */
  63.     private $metaKeywords "";
  64.     /**
  65.      * @var string
  66.      *
  67.      * @ORM\Column(name="meta_description", type="string", length=255, nullable=true)
  68.      */
  69.     private $metaDescription "";
  70.     /**
  71.      * @var string
  72.      *
  73.      * @ORM\Column(name="meta_title", type="string", length=255, nullable=true)
  74.      */
  75.     private $metaTitle "";
  76.     /**
  77.      * @var string
  78.      *
  79.      * @ORM\Column(name="nombre", type="string", length=100, nullable=false)
  80.      */
  81.     private $nombre;
  82.     
  83.     /**
  84.      * @var string
  85.      *
  86.      * @ORM\Column(name="slug", type="string", length=255, nullable=true)
  87.      */
  88.     private $slug;
  89.     
  90.     
  91.     public function getSluggableFields(): array
  92.     {
  93.         return ['nombre'];
  94.     }     
  95.     /**
  96.      * Get id
  97.      *
  98.      * @return integer
  99.      */
  100.     public function getId()
  101.     {
  102.         return $this->id;
  103.     }
  104.     /**
  105.      * Set indicaciones
  106.      *
  107.      * @param string $indicaciones
  108.      * @return OficinaIdioma
  109.      */
  110.     public function setIndicaciones($indicaciones)
  111.     {
  112.         $this->indicaciones $indicaciones;
  113.         return $this;
  114.     }
  115.     /**
  116.      * Get indicaciones
  117.      *
  118.      * @return string
  119.      */
  120.     public function getIndicaciones()
  121.     {
  122.         return $this->indicaciones;
  123.     }
  124.     /**
  125.      * Set serviciosTexto
  126.      *
  127.      * @param string $serviciosTexto
  128.      * @return OficinaIdioma
  129.      */
  130.     public function setServiciosTexto($serviciosTexto)
  131.     {
  132.         $this->serviciosTexto $serviciosTexto;
  133.         return $this;
  134.     }
  135.     /**
  136.      * Get serviciosTexto
  137.      *
  138.      * @return string
  139.      */
  140.     public function getServiciosTexto()
  141.     {
  142.         return $this->serviciosTexto;
  143.     }
  144.     /**
  145.      * Set descripcion
  146.      *
  147.      * @param string $descripcion
  148.      * @return OficinaIdioma
  149.      */
  150.     public function setDescripcion($descripcion)
  151.     {
  152.         $this->descripcion $descripcion;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get nombre
  157.      *
  158.      * @return string
  159.      */
  160.     public function getNombre()
  161.     {
  162.         return $this->nombre;
  163.     }
  164.     /**
  165.      * Set nombre
  166.      *
  167.      * @param string $nombre
  168.      * @return OficinaIdioma
  169.      */
  170.     public function setNombre($nombre)
  171.     {
  172.         $this->nombre $nombre;
  173.         return $this;
  174.     }
  175.     /**
  176.      * Get descripcion
  177.      *
  178.      * @return string
  179.      */
  180.     public function getDescripcion()
  181.     {
  182.         return $this->descripcion;
  183.     }
  184.     /**
  185.      * Set metaKeywords
  186.      *
  187.      * @param string $metaKeywords
  188.      * @return Entrada
  189.      */
  190.     public function setMetaKeywords($metaKeywords)
  191.     {
  192.         $this->metaKeywords $metaKeywords;
  193.         return $this;
  194.     }
  195.     /**
  196.      * Get metaKeywords
  197.      *
  198.      * @return string
  199.      */
  200.     public function getMetaKeywords()
  201.     {
  202.         return $this->metaKeywords;
  203.     }
  204.     /**
  205.      * Set metaDescription
  206.      *
  207.      * @param string $metaDescription
  208.      * @return Entrada
  209.      */
  210.     public function setMetaDescription($metaDescription)
  211.     {
  212.         $this->metaDescription $metaDescription;
  213.         return $this;
  214.     }
  215.     /**
  216.      * Get metaDescription
  217.      *
  218.      * @return string
  219.      */
  220.     public function getMetaDescription()
  221.     {
  222.         return $this->metaDescription;
  223.     }
  224.     /**
  225.      * Set metaTitle
  226.      *
  227.      * @param string $metaTitle
  228.      * @return Entrada
  229.      */
  230.     public function setMetaTitle($metaTitle)
  231.     {
  232.         $this->metaTitle $metaTitle;
  233.         return $this;
  234.     }
  235.     /**
  236.      * Get metaTitle
  237.      *
  238.      * @return string
  239.      */
  240.     public function getMetaTitle()
  241.     {
  242.         return $this->metaTitle;
  243.     }
  244.    /**
  245.      * Set title
  246.      *
  247.      * @param string $title
  248.      * @return Entrada
  249.      */
  250.     public function setTitle($title)
  251.     {
  252.         $this->title $title;
  253.         return $this;
  254.     }
  255.     /**
  256.      * Get title
  257.      *
  258.      * @return string
  259.      */
  260.     public function getTitle()
  261.     {
  262.         return $this->title;
  263.     }
  264.     /**
  265.      * Get alt
  266.      *
  267.      * @return string
  268.      */
  269.     public function getAlt(){
  270.         return $this->alt;
  271.     }
  272.     /**
  273.      * Set alt
  274.      * @param string $alt
  275.      * @return OficinaIdioma
  276.      */
  277.     public function setAlt($alt){
  278.         $this->alt $alt;
  279.         return $this;
  280.     }
  281.     
  282.     /**
  283.      * Get alt
  284.      *
  285.      * @return string
  286.      */
  287.     public function getSlug(){
  288.         return $this->slug;
  289.     }
  290.     /**
  291.      * Set alt
  292.      * @param string $alt
  293.      * @return OficinaIdioma
  294.      */
  295.     public function setSlug($slug){
  296.         $this->slug $slug;
  297.         return $this;
  298.     }
  299. }