src/Entity/PresseTranslation.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PresseTranslationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  7. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  8. /**
  9.  * @ORM\Entity(repositoryClass=PresseTranslationRepository::class)
  10.  */
  11. class PresseTranslation implements TranslationInterface
  12.     use TranslationTrait;
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $source;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $titre;  
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getSource(): ?string
  32.     {
  33.         return $this->source;
  34.     }
  35.     public function setSource(?string $source): self
  36.     {
  37.         $this->source $source;
  38.         return $this;
  39.     }
  40.     public function getTitre(): ?string
  41.     {
  42.         return $this->titre;
  43.     }
  44.     public function setTitre(?string $titre): self
  45.     {
  46.         $this->titre $titre;
  47.         return $this;
  48.     }  
  49. }