src/Entity/CategoryTranslation.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="category_translation")
  15.  */
  16. class CategoryTranslation 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.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  50.      */
  51.     protected $customH1;
  52.     /**
  53.      * @return mixed
  54.      */
  55.     public function getCanonical()
  56.     {
  57.         return $this->canonical;
  58.     }
  59.     /**
  60.      * @param mixed $canonical
  61.      */
  62.     public function setCanonical($canonical)
  63.     {
  64.         $this->canonical $canonical;
  65.     }
  66.     /**
  67.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  68.      */
  69.     protected $canonical;
  70.     /**
  71.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  72.      */
  73.     protected $slug;
  74.     /**
  75.      * @var string
  76.      *
  77.      * @ORM\Column(name="google_product_type", type="string", length=255, nullable=true)
  78.      */
  79.     private $googleProductType;
  80.     /**
  81.      * @var string
  82.      *
  83.      * @ORM\Column(name="google_product_category", type="string", length=255, nullable=true)
  84.      */
  85.     private $googleProductCategory;
  86.     /**
  87.      * @var string
  88.      *
  89.      * @ORM\Column(name="special_product_category", type="string", length=255, nullable=true)
  90.      */
  91.     private $specialProductCategory;
  92.     /**
  93.      * Set name
  94.      *
  95.      * @param string $name
  96.      *
  97.      * @return CategoryTranslation
  98.      */
  99.     public function setName($name)
  100.     {
  101.         $this->name $name;
  102.         return $this;
  103.     }
  104.     /**
  105.      * Get name
  106.      *
  107.      * @return string
  108.      */
  109.     public function getName()
  110.     {
  111.         return $this->name;
  112.     }
  113.     /**
  114.      * Set description
  115.      *
  116.      * @param string $description
  117.      *
  118.      * @return CategoryTranslation
  119.      */
  120.     public function setDescription($description)
  121.     {
  122.         $this->description $description;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get description
  127.      *
  128.      * @return string
  129.      */
  130.     public function getDescription()
  131.     {
  132.         return $this->description;
  133.     }
  134.     /**
  135.      * Set metaTitle
  136.      *
  137.      * @param string $metaTitle
  138.      *
  139.      * @return CategoryTranslation
  140.      */
  141.     public function setMetaTitle($metaTitle)
  142.     {
  143.         $this->metaTitle $metaTitle;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get metaTitle
  148.      *
  149.      * @return string
  150.      */
  151.     public function getMetaTitle()
  152.     {
  153.         return $this->metaTitle;
  154.     }
  155.     /**
  156.      * Set metaDescription
  157.      *
  158.      * @param string $metaDescription
  159.      *
  160.      * @return CategoryTranslation
  161.      */
  162.     public function setMetaDescription($metaDescription)
  163.     {
  164.         $this->metaDescription $metaDescription;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get metaDescription
  169.      *
  170.      * @return string
  171.      */
  172.     public function getMetaDescription()
  173.     {
  174.         return $this->metaDescription;
  175.     }
  176.     /**
  177.      * Set metaKeywords
  178.      *
  179.      * @param string $metaKeywords
  180.      *
  181.      * @return CategoryTranslation
  182.      */
  183.     public function setMetaKeywords($metaKeywords)
  184.     {
  185.         $this->metaKeywords $metaKeywords;
  186.         return $this;
  187.     }
  188.     /**
  189.      * Get metaKeywords
  190.      *
  191.      * @return string
  192.      */
  193.     public function getMetaKeywords()
  194.     {
  195.         return $this->metaKeywords;
  196.     }
  197.     /**
  198.      * Set slug
  199.      *
  200.      * @param string $slug
  201.      *
  202.      * @return CategoryTranslation
  203.      */
  204.     public function setSlug($slug)
  205.     {
  206.         $this->slug $slug;
  207.         return $this;
  208.     }
  209.     /**
  210.      * Get slug
  211.      *
  212.      * @return string
  213.      */
  214.     public function getSlug()
  215.     {
  216.         return $this->slug;
  217.     }
  218.     public function getGoogleProductType(): ?string
  219.     {
  220.         return $this->googleProductType;
  221.     }
  222.     public function setGoogleProductType(?string $googleProductType): self
  223.     {
  224.         $this->googleProductType $googleProductType;
  225.         return $this;
  226.     }
  227.     public function getGoogleProductCategory(): ?string
  228.     {
  229.         return $this->googleProductCategory;
  230.     }
  231.     public function setGoogleProductCategory(?string $googleProductCategory): self
  232.     {
  233.         $this->googleProductCategory $googleProductCategory;
  234.         return $this;
  235.     }
  236.     public function getId(): ?int
  237.     {
  238.         return $this->id;
  239.     }
  240.     /**
  241.      * @return mixed
  242.      */
  243.     public function getCustomH1()
  244.     {
  245.         return $this->customH1;
  246.     }
  247.     /**
  248.      * @param mixed $customH1
  249.      */
  250.     public function setCustomH1($customH1)
  251.     {
  252.         $this->customH1 $customH1;
  253.     }
  254.     /**
  255.      * @return string
  256.      */
  257.     public function getSpecialProductCategory()
  258.     {
  259.         return $this->specialProductCategory;
  260.     }
  261.     /**
  262.      * @param string $specialProductCategory
  263.      */
  264.     public function setSpecialProductCategory(?string $specialProductCategory): self
  265.     {
  266.         $this->specialProductCategory $specialProductCategory;
  267.     }
  268. }