src/Entity/RutaTranslation.php line 15

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Model as ORMBehaviors;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  7. /**
  8. * @ORM\Entity
  9. * @ORM\Table(name="ruta_translation")
  10. */
  11. class RutaTranslation implements TranslationInterface
  12. {
  13.     use TranslationTrait;
  14.     
  15.     
  16.      /**
  17.      * @var integer
  18.      *
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     protected $id;    
  24.     
  25.     /**
  26.     * @ORM\Column(name="ruta", type="string", length=128)
  27.     */
  28.     protected $ruta;
  29.     
  30.     
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="meta_title", type="string", length=255, nullable=true)
  35.      */
  36.     protected $metaTitle;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="meta_description", type="text", nullable=true)
  41.      */
  42.     protected $metaDescription;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="meta_keywords", type="text", nullable=true)
  47.      */
  48.     protected $metaKeywords;    
  49.     
  50.     /**
  51.      * Get id
  52.      *
  53.      * @return integer 
  54.      */
  55.     public function getId()
  56.     {
  57.         return $this->id;
  58.     }       
  59.     
  60.     
  61.     public function getRuta()
  62.     {
  63.         return $this->ruta;
  64.     }
  65.     public function setRuta($ruta)
  66.     {
  67.         $this->ruta $ruta;
  68.         return $this;
  69.     }
  70.     public function __toString()
  71.     {
  72.         return $this->getRuta();
  73.     }   
  74.     
  75.     
  76.     /**
  77.      * Set metaTitle
  78.      *
  79.      * @param string $metaTitle
  80.      * @return RutaTranslation
  81.      */
  82.     public function setMetaTitle($metaTitle)
  83.     {
  84.         $this->metaTitle $metaTitle;
  85.     
  86.         return $this;
  87.     }
  88.     /**
  89.      * Get metaTitle
  90.      *
  91.      * @return string 
  92.      */
  93.     public function getMetaTitle()
  94.     {
  95.         return $this->metaTitle;
  96.     }
  97.     /**
  98.      * Set metaDescription
  99.      *
  100.      * @param string $metaDescription
  101.      * @return RutaTranslation
  102.      */
  103.     public function setMetaDescription($metaDescription)
  104.     {
  105.         $this->metaDescription $metaDescription;
  106.     
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get metaDescription
  111.      *
  112.      * @return string 
  113.      */
  114.     public function getMetaDescription()
  115.     {
  116.         return $this->metaDescription;
  117.     }
  118.     /**
  119.      * Set metaKeywords
  120.      *
  121.      * @param string $metaKeywords
  122.      * @return RutaTranslation
  123.      */
  124.     public function setMetaKeywords($metaKeywords)
  125.     {
  126.         $this->metaKeywords $metaKeywords;
  127.     
  128.         return $this;
  129.     }
  130.     /**
  131.      * Get metaKeywords
  132.      *
  133.      * @return string 
  134.      */
  135.     public function getMetaKeywords()
  136.     {
  137.         return $this->metaKeywords;
  138.     }    
  139.   
  140.      
  141. }