src/Entity/Profil/ProfilTranslation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Profil;
  3. use App\Repository\Profil\ProfilTranslationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Model as ORMBehaviors;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProfilTranslationRepository::class)
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class ProfilTranslation
  11. {
  12.     use ORMBehaviors\Translatable\Translation;
  13.     
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     protected $id;
  20.     
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Profil::class, inversedBy="translations", cascade={"persist"})
  23.      */
  24.     protected $translatable;
  25.     
  26.     /**
  27.      * @var string
  28.      * @ORM\Column(type="string")
  29.      */
  30.     protected $locale;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $title;
  35.     /**
  36.      * @ORM\Column(type="text", length=255, nullable=true)
  37.      */
  38.     private $videoLink;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $pdfLink;
  43.     /**
  44.      * @ORM\Column(type="text", nullable=true)
  45.      */
  46.     private $description;
  47.     /**
  48.      * @ORM\Column(type="text", nullable=true)
  49.      */
  50.     private $negativeDescription;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getTitle(): ?string
  56.     {
  57.         return $this->title;
  58.     }
  59.     public function setTitle(?string $title): self
  60.     {
  61.         $this->title $title;
  62.         return $this;
  63.     }
  64.     public function getVideoLink(): ?string
  65.     {
  66.         return $this->videoLink;
  67.     }
  68.     public function setVideoLink(string $videoLink): self
  69.     {
  70.         $this->videoLink $videoLink;
  71.         return $this;
  72.     }
  73.     public function getPdfLink(): ?string
  74.     {
  75.         return $this->pdfLink;
  76.     }
  77.     public function setPdfLink(?string $pdfLink): self
  78.     {
  79.         $this->pdfLink $pdfLink;
  80.         return $this;
  81.     }
  82.     public function getDescription(): ?string
  83.     {
  84.         return $this->description;
  85.     }
  86.     public function setDescription(?string $description): self
  87.     {
  88.         $this->description $description;
  89.         return $this;
  90.     }
  91.     public function getNegativeDescription(): ?string
  92.     {
  93.         return $this->negativeDescription;
  94.     }
  95.     public function setNegativeDescription(?string $negativeDescription): self
  96.     {
  97.         $this->negativeDescription $negativeDescription;
  98.         return $this;
  99.     }
  100. }