<?php
namespace App\Entity;
use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Doctrine\ORM\Mapping as ORM;
/**
* @Doctrine\ORM\Mapping\Entity
* @Doctrine\ORM\Mapping\Table(name="product_translation")
*/
class ProductTranslation implements TranslationInterface, BlameableInterface, TimestampableInterface, SoftDeletableInterface {
use TranslationTrait;
use BlameableTrait;
use TimestampableTrait;
use SoftDeletableTrait;
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @Doctrine\ORM\Mapping\Column(type="string", length=255)
*/
protected $name;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $description;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $metaTitle;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $metaDescription;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $metaKeywords;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $slug;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $shortDescription;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $shortDescriptionTextile;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $shortDescriptionColor;
/**
* @Doctrine\ORM\Mapping\Column(name="short_function_description", type="text", nullable=true)
*/
protected $shortFunctionDescription;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $searchEngine;
/**
* @Doctrine\ORM\Mapping\Column(name="photo3d_gallery_url", type="text", nullable=true)
*/
protected $photo3dGalleryUrl;
/**
* @Doctrine\ORM\Mapping\Column(name="youtube_gallery_url", type="text", nullable=true)
*/
protected $youtubeGalleryUrl;
/**
* @Doctrine\ORM\Mapping\Column(name="trans_film", type="text", nullable=true)
*/
protected $transFilm;
/**
* @return mixed
*/
public function getCanonical()
{
return $this->canonical;
}
/**
* @param mixed $canonical
*/
public function setCanonical($canonical): void
{
$this->canonical = $canonical;
}
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $canonical;
/**
* @var string
*
* @ORM\Column(name="photo3d_additional", type="text", nullable=true)
*/
private $photo3dAdditional;
/**
* @return mixed
*/
public function getShortFunctionDescription()
{
return $this->shortFunctionDescription;
}
/**
* @param mixed $shortFunctionDescription
*/
public function setShortFunctionDescription($shortFunctionDescription): void
{
$this->shortFunctionDescription = $shortFunctionDescription;
}
/**
* Set name
*
* @param string $name
*
* @return ProductTranslation
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set description
*
* @param string $description
*
* @return ProductTranslation
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set metaTitle
*
* @param string $metaTitle
*
* @return ProductTranslation
*/
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 ProductTranslation
*/
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 ProductTranslation
*/
public function setMetaKeywords($metaKeywords)
{
$this->metaKeywords = $metaKeywords;
return $this;
}
/**
* Get metaKeywords
*
* @return string
*/
public function getMetaKeywords()
{
return $this->metaKeywords;
}
/**
* Set slug
*
* @param string $slug
*
* @return ProductTranslation
*/
public function setSlug($slug)
{
$this->slug = $slug;
return $this;
}
/**
* Get slug
*
* @return string
*/
public function getSlug()
{
return $this->slug;
}
/**
* Set shortDescription
*
* @param string $shortDescription
*
* @return ProductTranslation
*/
public function setShortDescription($shortDescription)
{
$this->shortDescription = $shortDescription;
return $this;
}
/**
* Get shortDescription
*
* @return string
*/
public function getShortDescription()
{
return str_replace("ó", "ó", $this->shortDescription);
}
public function getShortDescriptionTextile(): ?string
{
return str_replace("ó", "ó", $this->shortDescriptionTextile);
}
public function setShortDescriptionTextile(?string $shortDescriptionTextile): self
{
$this->shortDescriptionTextile = $shortDescriptionTextile;
return $this;
}
public function getShortDescriptionColor(): ?string
{
$desc = str_replace("ó", "ó", $this->shortDescriptionColor);
$desc = str_replace(""", '"', $desc);
return $desc;
}
public function setShortDescriptionColor(?string $shortDescriptionColor): self
{
$this->shortDescriptionColor = $shortDescriptionColor;
return $this;
}
public function getSearchEngine(): ?string
{
return $this->searchEngine;
}
public function setSearchEngine(?string $searchEngine): self
{
$this->searchEngine = $searchEngine;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getPhoto3dAdditional(): ?string
{
return $this->photo3dAdditional;
}
public function setPhoto3dAdditional(?string $photo3dAdditional): self
{
$this->photo3dAdditional = $photo3dAdditional;
return $this;
}
/**
* @return mixed
*/
public function getPhoto3dGalleryUrl()
{
return $this->photo3dGalleryUrl;
}
/**
* @param mixed $photo3dGalleryUrl
*/
public function setPhoto3dGalleryUrl($photo3dGalleryUrl)
{
$this->photo3dGalleryUrl = $photo3dGalleryUrl;
}
/**
* @return mixed
*/
public function getYoutubeGalleryUrl()
{
return $this->youtubeGalleryUrl;
}
/**
* @param mixed $youtubeGalleryUrl
*/
public function setYoutubeGalleryUrl($youtubeGalleryUrl)
{
$this->youtubeGalleryUrl = $youtubeGalleryUrl;
}
public function getTransFilm(): ?string
{
return $this->transFilm;
}
public function setTransFilm(?string $transFilm): self
{
$this->transFilm = $transFilm;
return $this;
}
}