src/Entity/Information.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InformationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=InformationRepository::class)
  7.  */
  8. class Information
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private ?int $id null;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=UserPlatform::class)
  18.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE", nullable=false)
  19.      */
  20.     private ?UserPlatform $user null;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Eleve::class)
  23.      * @ORM\JoinColumn(name="eleve_id", referencedColumnName="id", onDelete="SET NULL", nullable=true)
  24.      */
  25.     private ?Eleve $eleve null;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Classe::class)
  28.      * @ORM\JoinColumn(name="classe_id", referencedColumnName="id", onDelete="SET NULL", nullable=true)
  29.      */
  30.     private ?Classe $classe null;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity=YearSchool::class)
  33.      * @ORM\JoinColumn(name="annee_scolaire_id", referencedColumnName="id",onDelete="SET NULL")
  34.      */
  35.     private $anneeScolaire;
  36.     /**
  37.      * @ORM\Column(type="string", length=255)
  38.      */
  39.     private ?string $titre null;
  40.     /**
  41.      * @ORM\Column(type="text")
  42.      */
  43.     private ?string $contenu null;
  44.     /**
  45.      * @ORM\Column(type="datetime")
  46.      */
  47.     private ?\DateTimeInterface $date null;
  48.     // Getters et Setters
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getUser(): ?UserPlatform
  54.     {
  55.         return $this->user;
  56.     }
  57.     public function setUser(?UserPlatform $user): self
  58.     {
  59.         $this->user $user;
  60.         return $this;
  61.     }
  62.     public function getEleve(): ?Eleve
  63.     {
  64.         return $this->eleve;
  65.     }
  66.     public function setEleve(?Eleve $eleve): self
  67.     {
  68.         $this->eleve $eleve;
  69.         return $this;
  70.     }
  71.     public function getClasse(): ?Classe
  72.     {
  73.         return $this->classe;
  74.     }
  75.     public function setClasse(?Classe $classe): self
  76.     {
  77.         $this->classe $classe;
  78.         return $this;
  79.     }
  80.     
  81.     public function getAnneeScolaire(): ?YearSchool
  82.     {
  83.         return $this->anneeScolaire;
  84.     }
  85.     public function setAnneeScolaire(?YearSchool $anneeScolaire): self
  86.     {
  87.         $this->anneeScolaire $anneeScolaire;
  88.         return $this;
  89.     }
  90.     public function getTitre(): ?string
  91.     {
  92.         return $this->titre;
  93.     }
  94.     public function setTitre(string $titre): self
  95.     {
  96.         $this->titre $titre;
  97.         return $this;
  98.     }
  99.     public function getContenu(): ?string
  100.     {
  101.         return $this->contenu;
  102.     }
  103.     public function setContenu(string $contenu): self
  104.     {
  105.         $this->contenu $contenu;
  106.         return $this;
  107.     }
  108.     public function getDate(): ?\DateTimeInterface
  109.     {
  110.         return $this->date;
  111.     }
  112.     public function setDate(\DateTimeInterface $date): self
  113.     {
  114.         $this->date $date;
  115.         return $this;
  116.     }
  117. }