src/Entity/Datedocument.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DatedocumentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DatedocumentRepository::class)
  7.  */
  8. class Datedocument
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $titre;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $typedocument;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=TypeGuide::class, inversedBy="datedocuments")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $typeplateform;
  29.     /**
  30.      * @ORM\Column(type="date", nullable=true)
  31.      */
  32.     private $datemodification;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getTitre(): ?string
  38.     {
  39.         return $this->titre;
  40.     }
  41.     public function setTitre(string $titre): self
  42.     {
  43.         $this->titre $titre;
  44.         return $this;
  45.     }
  46.     public function getTypedocument(): ?int
  47.     {
  48.         return $this->typedocument;
  49.     }
  50.     public function setTypedocument(int $typedocument): self
  51.     {
  52.         $this->typedocument $typedocument;
  53.         return $this;
  54.     }
  55.     public function getTypeplateform(): ?TypeGuide
  56.     {
  57.         return $this->typeplateform;
  58.     }
  59.     public function setTypeplateform(?TypeGuide $typeplateform): self
  60.     {
  61.         $this->typeplateform $typeplateform;
  62.         return $this;
  63.     }
  64.     public function getDatemodification(): ?\DateTimeInterface
  65.     {
  66.         return $this->datemodification;
  67.     }
  68.     public function setDatemodification(?\DateTimeInterface $datemodification): self
  69.     {
  70.         $this->datemodification $datemodification;
  71.         return $this;
  72.     }
  73. }