src/Entity/ProductTranslation.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="product_translation")
  15.  */
  16. class ProductTranslation implements TranslationInterfaceBlameableInterfaceTimestampableInterfaceSoftDeletableInterface   {
  17.     use TranslationTrait;
  18. use BlameableTrait;
  19.     use TimestampableTrait;
  20.     
  21.     use SoftDeletableTrait;
  22.     
  23.     /**
  24.      * @ORM\Id
  25.      * @ORM\Column(type="integer")
  26.      * @ORM\GeneratedValue(strategy="AUTO")
  27.      */
  28.     protected $id;
  29.     /**
  30.      * @Doctrine\ORM\Mapping\Column(type="string", length=255)
  31.      */
  32.     protected $name;
  33.     /**
  34.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  35.      */
  36.     protected $description;
  37.     /**
  38.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  39.      */
  40.     protected $metaTitle;
  41.     /**
  42.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  43.      */
  44.     protected $metaDescription;
  45.     /**
  46.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  47.      */
  48.     protected $metaKeywords;
  49.     /**
  50.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  51.      */
  52.     protected $slug;
  53.     /**
  54.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  55.      */
  56.     protected $shortDescription;
  57.     /**
  58.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  59.      */
  60.     protected $shortDescriptionTextile;
  61.     /**
  62.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  63.      */
  64.     protected $shortDescriptionColor;
  65.     /**
  66.      * @Doctrine\ORM\Mapping\Column(name="short_function_description", type="text", nullable=true)
  67.      */
  68.     protected $shortFunctionDescription;
  69.     /**
  70.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  71.      */
  72.     protected $searchEngine;
  73.     /**
  74.      * @Doctrine\ORM\Mapping\Column(name="photo3d_gallery_url", type="text", nullable=true)
  75.      */
  76.     protected $photo3dGalleryUrl;
  77.     /**
  78.      * @Doctrine\ORM\Mapping\Column(name="youtube_gallery_url", type="text", nullable=true)
  79.      */
  80.     protected $youtubeGalleryUrl;
  81.     /**
  82.      * @Doctrine\ORM\Mapping\Column(name="trans_film", type="text", nullable=true)
  83.      */
  84.     protected $transFilm;
  85.     /**
  86.      * @return mixed
  87.      */
  88.     public function getCanonical()
  89.     {
  90.         return $this->canonical;
  91.     }
  92.     /**
  93.      * @param mixed $canonical
  94.      */
  95.     public function setCanonical($canonical): void
  96.     {
  97.         $this->canonical $canonical;
  98.     }
  99.     /**
  100.      * @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
  101.      */
  102.     protected $canonical;
  103.     /**
  104.      * @var string
  105.      *
  106.      * @ORM\Column(name="photo3d_additional", type="text", nullable=true)
  107.      */
  108.     private $photo3dAdditional;
  109.     /**
  110.      * @return mixed
  111.      */
  112.     public function getShortFunctionDescription()
  113.     {
  114.         return $this->shortFunctionDescription;
  115.     }
  116.     /**
  117.      * @param mixed $shortFunctionDescription
  118.      */
  119.     public function setShortFunctionDescription($shortFunctionDescription): void
  120.     {
  121.         $this->shortFunctionDescription $shortFunctionDescription;
  122.     }
  123.     /**
  124.      * Set name
  125.      *
  126.      * @param string $name
  127.      *
  128.      * @return ProductTranslation
  129.      */
  130.     public function setName($name)
  131.     {
  132.         $this->name $name;
  133.         return $this;
  134.     }
  135.     /**
  136.      * Get name
  137.      *
  138.      * @return string
  139.      */
  140.     public function getName()
  141.     {
  142.         return $this->name;
  143.     }
  144.     /**
  145.      * Set description
  146.      *
  147.      * @param string $description
  148.      *
  149.      * @return ProductTranslation
  150.      */
  151.     public function setDescription($description)
  152.     {
  153.         $this->description $description;
  154.         return $this;
  155.     }
  156.     /**
  157.      * Get description
  158.      *
  159.      * @return string
  160.      */
  161.     public function getDescription()
  162.     {
  163.         return $this->description;
  164.     }
  165.     /**
  166.      * Set metaTitle
  167.      *
  168.      * @param string $metaTitle
  169.      *
  170.      * @return ProductTranslation
  171.      */
  172.     public function setMetaTitle($metaTitle)
  173.     {
  174.         $this->metaTitle $metaTitle;
  175.         return $this;
  176.     }
  177.     /**
  178.      * Get metaTitle
  179.      *
  180.      * @return string
  181.      */
  182.     public function getMetaTitle()
  183.     {
  184.         return $this->metaTitle;
  185.     }
  186.     /**
  187.      * Set metaDescription
  188.      *
  189.      * @param string $metaDescription
  190.      *
  191.      * @return ProductTranslation
  192.      */
  193.     public function setMetaDescription($metaDescription)
  194.     {
  195.         $this->metaDescription $metaDescription;
  196.         return $this;
  197.     }
  198.     /**
  199.      * Get metaDescription
  200.      *
  201.      * @return string
  202.      */
  203.     public function getMetaDescription()
  204.     {
  205.         return $this->metaDescription;
  206.     }
  207.     /**
  208.      * Set metaKeywords
  209.      *
  210.      * @param string $metaKeywords
  211.      *
  212.      * @return ProductTranslation
  213.      */
  214.     public function setMetaKeywords($metaKeywords)
  215.     {
  216.         $this->metaKeywords $metaKeywords;
  217.         return $this;
  218.     }
  219.     /**
  220.      * Get metaKeywords
  221.      *
  222.      * @return string
  223.      */
  224.     public function getMetaKeywords()
  225.     {
  226.         return $this->metaKeywords;
  227.     }
  228.     /**
  229.      * Set slug
  230.      *
  231.      * @param string $slug
  232.      *
  233.      * @return ProductTranslation
  234.      */
  235.     public function setSlug($slug)
  236.     {
  237.         $this->slug $slug;
  238.         return $this;
  239.     }
  240.     /**
  241.      * Get slug
  242.      *
  243.      * @return string
  244.      */
  245.     public function getSlug()
  246.     {
  247.         return $this->slug;
  248.     }
  249.     /**
  250.      * Set shortDescription
  251.      *
  252.      * @param string $shortDescription
  253.      *
  254.      * @return ProductTranslation
  255.      */
  256.     public function setShortDescription($shortDescription)
  257.     {
  258.         $this->shortDescription $shortDescription;
  259.         return $this;
  260.     }
  261.     /**
  262.      * Get shortDescription
  263.      *
  264.      * @return string
  265.      */
  266.     public function getShortDescription()
  267.     {
  268.         return str_replace("&oacute;""ó"$this->shortDescription);
  269.     }
  270.     public function getShortDescriptionTextile(): ?string
  271.     {
  272.         return str_replace("&oacute;""ó"$this->shortDescriptionTextile);
  273.     }
  274.     public function setShortDescriptionTextile(?string $shortDescriptionTextile): self
  275.     {
  276.         $this->shortDescriptionTextile $shortDescriptionTextile;
  277.         return $this;
  278.     }
  279.     public function getShortDescriptionColor(): ?string
  280.     {
  281.         $desc str_replace("&oacute;""ó"$this->shortDescriptionColor);
  282.         $desc str_replace("&quot;"'"'$desc);
  283.         return $desc;
  284.     }
  285.     public function setShortDescriptionColor(?string $shortDescriptionColor): self
  286.     {
  287.         $this->shortDescriptionColor $shortDescriptionColor;
  288.         return $this;
  289.     }
  290.     public function getSearchEngine(): ?string
  291.     {
  292.         return $this->searchEngine;
  293.     }
  294.     public function setSearchEngine(?string $searchEngine): self
  295.     {
  296.         $this->searchEngine $searchEngine;
  297.         return $this;
  298.     }
  299.     public function getId(): ?int
  300.     {
  301.         return $this->id;
  302.     }
  303.     public function getPhoto3dAdditional(): ?string
  304.     {
  305.         return $this->photo3dAdditional;
  306.     }
  307.     public function setPhoto3dAdditional(?string $photo3dAdditional): self
  308.     {
  309.         $this->photo3dAdditional $photo3dAdditional;
  310.         return $this;
  311.     }
  312.     /**
  313.      * @return mixed
  314.      */
  315.     public function getPhoto3dGalleryUrl()
  316.     {
  317.         return $this->photo3dGalleryUrl;
  318.     }
  319.     /**
  320.      * @param mixed $photo3dGalleryUrl
  321.      */
  322.     public function setPhoto3dGalleryUrl($photo3dGalleryUrl)
  323.     {
  324.         $this->photo3dGalleryUrl $photo3dGalleryUrl;
  325.     }
  326.     /**
  327.      * @return mixed
  328.      */
  329.     public function getYoutubeGalleryUrl()
  330.     {
  331.         return $this->youtubeGalleryUrl;
  332.     }
  333.     /**
  334.      * @param mixed $youtubeGalleryUrl
  335.      */
  336.     public function setYoutubeGalleryUrl($youtubeGalleryUrl)
  337.     {
  338.         $this->youtubeGalleryUrl $youtubeGalleryUrl;
  339.     }
  340.     public function getTransFilm(): ?string
  341.     {
  342.         return $this->transFilm;
  343.     }
  344.     public function setTransFilm(?string $transFilm): self
  345.     {
  346.         $this->transFilm $transFilm;
  347.         return $this;
  348.     }
  349. }