src/Entity/Traductions/Traduction.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Traductions;
  3. use App\Entity\Articles\Article;
  4. use App\Entity\MarketPlace\ArticleMarketPlace;
  5. use DateTime;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * Traduction
  9.  *
  10.  * @ORM\Table("traduction__traduction")
  11.  * @ORM\Entity(repositoryClass="App\Repository\Traductions\TraductionRepository")
  12.  */
  13. class Traduction
  14. {
  15.     /**
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Article", cascade={"persist"}, inversedBy="traductions")
  23.      */
  24.     private $article;
  25.     /**
  26.      * @ORM\Column(name="meta_description", type="text", nullable=true)
  27.      */
  28.     private $metaDescription;
  29.     /**
  30.      * @ORM\Column(name="url_rewriting", type="string", length=255, nullable=true)
  31.      */
  32.     private $urlRewriting;
  33.     /**
  34.      * @ORM\Column(name="titre_seo", type="string", length=255, nullable=true)
  35.      */
  36.     private $titreSeo;
  37.     /**
  38.      * @ORM\Column(name="alt_img", type="string", length=255, nullable=true)
  39.      */
  40.     private $altImg;
  41.     /**
  42.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\ArticleMarketPlace", cascade={"persist"}, inversedBy="traductions")
  43.      */
  44.     private $articleMarketPlace;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity="App\Entity\Traductions\Langue", cascade={"persist"})
  47.      */
  48.     private $langue;
  49.     /**
  50.      * @ORM\Column(name="libelle", type="string", length=255, nullable=true)
  51.      */
  52.     private $libelle;
  53.     /**
  54.      * @ORM\Column(name="libelleSecondaire", type="string", length=255, nullable=true)
  55.      */
  56.     private $libelleSecondaire;
  57.     /**
  58.      * @ORM\Column(name="description", type="text", nullable=true)
  59.      */
  60.     private $description;
  61.     /**
  62.      * @ORM\Column(name="descriptionCourte", type="text", nullable=true)
  63.      */
  64.     private $descriptionCourte;
  65.     /**
  66.      * @ORM\Column(name="date", type="datetime", nullable=true)
  67.      */
  68.     private $date;
  69.     public function getId(): int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function setLibelle(?string $libelle): Traduction
  74.     {
  75.         $this->libelle $libelle;
  76.         return $this;
  77.     }
  78.     public function getLibelle(): ?string
  79.     {
  80.         return $this->libelle;
  81.     }
  82.     public function setLibelleSecondaire(?string $libelleSecondaire): Traduction
  83.     {
  84.         $this->libelleSecondaire $libelleSecondaire;
  85.         return $this;
  86.     }
  87.     public function getLibelleSecondaire(): ?string
  88.     {
  89.         return $this->libelleSecondaire;
  90.     }
  91.     public function setDescription(?string $description): Traduction
  92.     {
  93.         $this->description $description;
  94.         return $this;
  95.     }
  96.     public function getDescription(): ?string
  97.     {
  98.         return $this->description;
  99.     }
  100.     public function setDescriptionCourte(?string $descriptionCourte): Traduction
  101.     {
  102.         $this->descriptionCourte $descriptionCourte;
  103.         return $this;
  104.     }
  105.     public function getDescriptionCourte(): ?string
  106.     {
  107.         return $this->descriptionCourte;
  108.     }
  109.     public function setDate(?DateTime $date): Traduction
  110.     {
  111.         $this->date $date;
  112.         return $this;
  113.     }
  114.     public function getDate(): ?DateTime
  115.     {
  116.         return $this->date;
  117.     }
  118.     public function setArticle(?Article $article): Traduction
  119.     {
  120.         $this->article $article;
  121.         return $this;
  122.     }
  123.     public function getArticle(): ?Article
  124.     {
  125.         return $this->article;
  126.     }
  127.     public function setLangue(?Langue $langue): Traduction
  128.     {
  129.         $this->langue $langue;
  130.         return $this;
  131.     }
  132.     public function getLangue(): ?Langue
  133.     {
  134.         return $this->langue;
  135.     }
  136.     public function setArticleMarketPlace(?ArticleMarketPlace $articleMarketPlace): Traduction
  137.     {
  138.         $this->articleMarketPlace $articleMarketPlace;
  139.         return $this;
  140.     }
  141.     public function getArticleMarketPlace(): ?ArticleMarketPlace
  142.     {
  143.         return $this->articleMarketPlace;
  144.     }
  145.     public function setAltImg(?string $altImg): Traduction
  146.     {
  147.         $this->altImg $altImg;
  148.         return $this;
  149.     }
  150.     public function getAltImg(): ?string
  151.     {
  152.         return $this->altImg;
  153.     }
  154.     public function setTitreSeo(?string $titreSeo): Traduction
  155.     {
  156.         $this->titreSeo $titreSeo;
  157.         return $this;
  158.     }
  159.     public function getTitreSeo(): ?string
  160.     {
  161.         return $this->titreSeo;
  162.     }
  163.     public function setUrlRewriting(?string $urlRewriting): Traduction
  164.     {
  165.         $this->urlRewriting $urlRewriting;
  166.         return $this;
  167.     }
  168.     public function getUrlRewriting(): ?string
  169.     {
  170.         return $this->urlRewriting;
  171.     }
  172.     public function setMetaDescription(?string $metaDescription): Traduction
  173.     {
  174.         $this->metaDescription $metaDescription;
  175.         return $this;
  176.     }
  177.     public function getMetaDescription(): ?string
  178.     {
  179.         return $this->metaDescription;
  180.     }
  181. }