src/Entity/DivisaConversionTranslation.php line 21

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  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. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * DivisaConversionIdioma
  11.  *
  12.  * @ORM\Table(name="divisa_conversion_translation")
  13.  * 
  14.  * @ORM\Entity
  15.  */
  16. class DivisaConversionTranslation  implements TranslationInterface//, SluggableInterface
  17. {
  18.     use TranslationTrait;
  19.  //   use SluggableTrait;
  20.     
  21.     /**
  22.      * @var integer
  23.      *
  24.      * @ORM\Column(name="id", type="integer")
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue(strategy="AUTO")
  27.      */
  28.     private $id;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="descripcion1", type="text")
  33.      */
  34.     private $descripcion1;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="meta_robots", type="string", length=255, nullable=true)
  39.      */
  40.     private $metaRobots "";
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="descripcion2", type="text")
  45.      */
  46.     private $descripcion2;
  47.     /**
  48.      * @var string
  49.      *
  50.      * ORM\Column(name="descripcion3", type="text")
  51.      */
  52.     private $descripcion3;
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="meta_keywords", type="string", length=255, nullable=true)
  57.      */
  58.     private $metaKeywords "";
  59.     /**
  60.      * @var string
  61.      *
  62.      * @ORM\Column(name="meta_description", type="string", length=255, nullable=true)
  63.      */
  64.     private $metaDescription "";
  65.     /**
  66.      * @var string
  67.      *
  68.      * @ORM\Column(name="meta_title", type="string", length=255, nullable=true)
  69.      */
  70.     private $metaTitle "";
  71.     
  72.     /**
  73.      * @var string
  74.      *
  75.      * @ORM\Column(name="slug", type="string", length=255, nullable=true)
  76.      */
  77.     private $slug;
  78.     
  79. //     public function getSluggableFields(): array
  80. //     {
  81. //         return ['descripcion1'];
  82. //     }
  83.     /**
  84.      * Get id
  85.      *
  86.      * @return integer
  87.      */
  88.     public function getId()
  89.     {
  90.         return $this->id;
  91.     }
  92.     /**
  93.      * Set divisaConversion
  94.      *
  95.      * @param integer $divisaConversion
  96.      * @return DivisaConversionIdioma
  97.      */
  98.     public function setDivisaConversion($divisaConversion)
  99.     {
  100.         $this->divisaConversion $divisaConversion;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Get divisaConversion
  105.      *
  106.      * @return integer
  107.      */
  108.     public function getDivisaConversion()
  109.     {
  110.         return $this->divisaConversion;
  111.     }
  112.     /**
  113.      * Set descripcion1
  114.      *
  115.      * @param string $descripcion1
  116.      * @return DivisaConversionIdioma
  117.      */
  118.     public function setDescripcion1($descripcion1)
  119.     {
  120.         $this->descripcion1 $descripcion1;
  121.         return $this;
  122.     }
  123.     /**
  124.      * Get descripcion1
  125.      *
  126.      * @return string
  127.      */
  128.     public function getDescripcion1()
  129.     {
  130.         return $this->descripcion1;
  131.     }
  132.     /**
  133.      * Set descripcion2
  134.      *
  135.      * @param string $descripcion2
  136.      * @return DivisaConversionIdioma
  137.      */
  138.     public function setDescripcion2($descripcion2)
  139.     {
  140.         $this->descripcion2 $descripcion2;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get descripcion2
  145.      *
  146.      * @return string
  147.      */
  148.     public function getDescripcion2()
  149.     {
  150.         return $this->descripcion2;
  151.     }
  152.     /**
  153.      * Set descripcion3
  154.      *
  155.      * @param string $descripcion3
  156.      * @return DivisaConversionIdioma
  157.      */
  158.     public function setDescripcion3($descripcion3)
  159.     {
  160.         $this->descripcion3 $descripcion3;
  161.         return $this;
  162.     }
  163.     /**
  164.      * Get descripcion3
  165.      *
  166.      * @return string
  167.      */
  168.     public function getDescripcion3()
  169.     {
  170.         return $this->descripcion3;
  171.     }
  172.         /**
  173.      * Set metaKeywords
  174.      *
  175.      * @param string $metaKeywords
  176.      * @return Entrada
  177.      */
  178.     public function setMetaKeywords($metaKeywords)
  179.     {
  180.         $this->metaKeywords $metaKeywords;
  181.         return $this;
  182.     }
  183.     /**
  184.      * Get metaKeywords
  185.      *
  186.      * @return string
  187.      */
  188.     public function getMetaKeywords()
  189.     {
  190.         return $this->metaKeywords;
  191.     }
  192.     /**
  193.      * Set metaDescription
  194.      *
  195.      * @param string $metaDescription
  196.      * @return Entrada
  197.      */
  198.     public function setMetaDescription($metaDescription)
  199.     {
  200.         $this->metaDescription $metaDescription;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get metaDescription
  205.      *
  206.      * @return string
  207.      */
  208.     public function getMetaDescription()
  209.     {
  210.         return $this->metaDescription;
  211.     }
  212.     /**
  213.      * Set metaTitle
  214.      *
  215.      * @param string $metaTitle
  216.      * @return Entrada
  217.      */
  218.     public function setMetaTitle($metaTitle)
  219.     {
  220.         $this->metaTitle $metaTitle;
  221.         return $this;
  222.     }
  223.     /**
  224.      * Get metaTitle
  225.      *
  226.      * @return string
  227.      */
  228.     public function getMetaTitle()
  229.     {
  230.         return $this->metaTitle;
  231.     }
  232.     /**
  233.      * Set metaTitle
  234.      *
  235.      * @param string $metaRobots
  236.      * @return Entrada
  237.      */
  238.     public function setMetaRobots($metaRobots)
  239.     {
  240.         $this->metaRobots $metaRobots;
  241.         return $this;
  242.     }
  243.     /**
  244.      * Get metaRobots
  245.      *
  246.      * @return string
  247.      */
  248.     public function getMetaRobots()
  249.     {
  250.         return $this->metaRobots;
  251.     }
  252.     public function getSlug(): ?string
  253.     {
  254.         return $this->slug;
  255.     }
  256.     public function setSlug(?string $slug): self
  257.     {
  258.         $this->slug $slug;
  259.         return $this;
  260.     }
  261. }