src/Entity/RutaTranslation.php line 15
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Knp\DoctrineBehaviors\Model as ORMBehaviors;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
- /**
- * @ORM\Entity
- * @ORM\Table(name="ruta_translation")
- */
- class RutaTranslation implements TranslationInterface
- {
- use TranslationTrait;
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @ORM\Column(name="ruta", type="string", length=128)
- */
- protected $ruta;
- /**
- * @var string
- *
- * @ORM\Column(name="meta_title", type="string", length=255, nullable=true)
- */
- protected $metaTitle;
- /**
- * @var string
- *
- * @ORM\Column(name="meta_description", type="text", nullable=true)
- */
- protected $metaDescription;
- /**
- * @var string
- *
- * @ORM\Column(name="meta_keywords", type="text", nullable=true)
- */
- protected $metaKeywords;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- public function getRuta()
- {
- return $this->ruta;
- }
- public function setRuta($ruta)
- {
- $this->ruta = $ruta;
- return $this;
- }
- public function __toString()
- {
- return $this->getRuta();
- }
- /**
- * Set metaTitle
- *
- * @param string $metaTitle
- * @return RutaTranslation
- */
- public function setMetaTitle($metaTitle)
- {
- $this->metaTitle = $metaTitle;
- return $this;
- }
- /**
- * Get metaTitle
- *
- * @return string
- */
- public function getMetaTitle()
- {
- return $this->metaTitle;
- }
- /**
- * Set metaDescription
- *
- * @param string $metaDescription
- * @return RutaTranslation
- */
- public function setMetaDescription($metaDescription)
- {
- $this->metaDescription = $metaDescription;
- return $this;
- }
- /**
- * Get metaDescription
- *
- * @return string
- */
- public function getMetaDescription()
- {
- return $this->metaDescription;
- }
- /**
- * Set metaKeywords
- *
- * @param string $metaKeywords
- * @return RutaTranslation
- */
- public function setMetaKeywords($metaKeywords)
- {
- $this->metaKeywords = $metaKeywords;
- return $this;
- }
- /**
- * Get metaKeywords
- *
- * @return string
- */
- public function getMetaKeywords()
- {
- return $this->metaKeywords;
- }
- }