src/Entity/FurnitureTypeTranslation.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  4. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  6. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  7. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  8. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  9. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  10. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  11. use Doctrine\ORM\Mapping as ORM;
  12. /**
  13.  * @Doctrine\ORM\Mapping\Entity
  14.  * @Doctrine\ORM\Mapping\Table(name="furniture_type_translation")
  15.  */
  16. class FurnitureTypeTranslation implements TranslationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface   {
  17.     use TranslationTrait;
  18.     /**
  19.      * @ORM\Id
  20.      * @ORM\Column(type="integer")
  21.      * @ORM\GeneratedValue
  22.      */
  23.     private ?int $id null;
  24. use BlameableTrait;
  25.     use TimestampableTrait;
  26.     
  27.     use SoftDeletableTrait;
  28.     /**
  29.      * @Doctrine\ORM\Mapping\Column(type="string", length=255)
  30.      */
  31.     protected $name;
  32.     /**
  33.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  34.      */
  35.     protected $description;
  36.     /**
  37.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  38.      */
  39.     protected $metaTitle;
  40.     /**
  41.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  42.      */
  43.     protected $metaDescription;
  44.     /**
  45.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  46.      */
  47.     protected $metaKeywords;
  48.     /**
  49.      * @return mixed
  50.      */
  51.     public function getCanonical()
  52.     {
  53.         return $this->canonical;
  54.     }
  55.     /**
  56.      * @param mixed $canonical
  57.      */
  58.     public function setCanonical($canonical)
  59.     {
  60.         $this->canonical $canonical;
  61.     }
  62.     /**
  63.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  64.      */
  65.     protected $canonical;
  66.     /**
  67.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  68.      */
  69.     protected $slug;
  70.     public function getName(): ?string
  71.     {
  72.         return $this->name;
  73.     }
  74.     public function setName(string $name): self
  75.     {
  76.         $this->name $name;
  77.         return $this;
  78.     }
  79.     public function getDescription(): ?string
  80.     {
  81.         return $this->description;
  82.     }
  83.     public function setDescription(?string $description): self
  84.     {
  85.         $this->description $description;
  86.         return $this;
  87.     }
  88.     public function getMetaTitle(): ?string
  89.     {
  90.         return $this->metaTitle;
  91.     }
  92.     public function setMetaTitle(?string $metaTitle): self
  93.     {
  94.         $this->metaTitle $metaTitle;
  95.         return $this;
  96.     }
  97.     public function getMetaDescription(): ?string
  98.     {
  99.         return $this->metaDescription;
  100.     }
  101.     public function setMetaDescription(?string $metaDescription): self
  102.     {
  103.         $this->metaDescription $metaDescription;
  104.         return $this;
  105.     }
  106.     public function getMetaKeywords(): ?string
  107.     {
  108.         return $this->metaKeywords;
  109.     }
  110.     public function setMetaKeywords(?string $metaKeywords): self
  111.     {
  112.         $this->metaKeywords $metaKeywords;
  113.         return $this;
  114.     }
  115.     public function getSlug(): ?string
  116.     {
  117.         return $this->slug;
  118.     }
  119.     public function setSlug(?string $slug): self
  120.     {
  121.         $this->slug $slug;
  122.         return $this;
  123.     }
  124.     public function getId(): ?int
  125.     {
  126.         return $this->id;
  127.     }
  128.     
  129. }