src/Entity/DivisaConversionTranslation.php line 21
- <?php
- namespace App\Entity;
- use Doctrine\DBAL\Types\Types;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
- use Knp\DoctrineBehaviors\Model\Sluggable\SluggableTrait;
- use Knp\DoctrineBehaviors\Contract\Entity\SluggableInterface;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * DivisaConversionIdioma
- *
- * @ORM\Table(name="divisa_conversion_translation")
- *
- * @ORM\Entity
- */
- class DivisaConversionTranslation 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="descripcion1", type="text")
- */
- private $descripcion1;
- /**
- * @var string
- *
- * @ORM\Column(name="meta_robots", type="string", length=255, nullable=true)
- */
- private $metaRobots = "";
- /**
- * @var string
- *
- * @ORM\Column(name="descripcion2", type="text")
- */
- private $descripcion2;
- /**
- * @var string
- *
- * ORM\Column(name="descripcion3", type="text")
- */
- private $descripcion3;
- /**
- * @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="slug", type="string", length=255, nullable=true)
- */
- private $slug;
- // public function getSluggableFields(): array
- // {
- // return ['descripcion1'];
- // }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set divisaConversion
- *
- * @param integer $divisaConversion
- * @return DivisaConversionIdioma
- */
- public function setDivisaConversion($divisaConversion)
- {
- $this->divisaConversion = $divisaConversion;
- return $this;
- }
- /**
- * Get divisaConversion
- *
- * @return integer
- */
- public function getDivisaConversion()
- {
- return $this->divisaConversion;
- }
- /**
- * Set descripcion1
- *
- * @param string $descripcion1
- * @return DivisaConversionIdioma
- */
- public function setDescripcion1($descripcion1)
- {
- $this->descripcion1 = $descripcion1;
- return $this;
- }
- /**
- * Get descripcion1
- *
- * @return string
- */
- public function getDescripcion1()
- {
- return $this->descripcion1;
- }
- /**
- * Set descripcion2
- *
- * @param string $descripcion2
- * @return DivisaConversionIdioma
- */
- public function setDescripcion2($descripcion2)
- {
- $this->descripcion2 = $descripcion2;
- return $this;
- }
- /**
- * Get descripcion2
- *
- * @return string
- */
- public function getDescripcion2()
- {
- return $this->descripcion2;
- }
- /**
- * Set descripcion3
- *
- * @param string $descripcion3
- * @return DivisaConversionIdioma
- */
- public function setDescripcion3($descripcion3)
- {
- $this->descripcion3 = $descripcion3;
- return $this;
- }
- /**
- * Get descripcion3
- *
- * @return string
- */
- public function getDescripcion3()
- {
- return $this->descripcion3;
- }
- /**
- * 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 metaTitle
- *
- * @param string $metaRobots
- * @return Entrada
- */
- public function setMetaRobots($metaRobots)
- {
- $this->metaRobots = $metaRobots;
- return $this;
- }
- /**
- * Get metaRobots
- *
- * @return string
- */
- public function getMetaRobots()
- {
- return $this->metaRobots;
- }
- public function getSlug(): ?string
- {
- return $this->slug;
- }
- public function setSlug(?string $slug): self
- {
- $this->slug = $slug;
- return $this;
- }
- }