src/Entity/PrimaryNote.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PrimaryNoteRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassPrimaryNoteRepository::class)]
  8. class PrimaryNote
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column]
  15.     private ?float $note null;
  16.     #[ORM\ManyToOne(inversedBy'primaryNotes')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?Student $student null;
  19.     #[ORM\ManyToOne(inversedBy'primaryNotes')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?TheClass $classe null;
  22.     #[ORM\ManyToOne(inversedBy'primaryNotes')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?Subject $subject null;
  25.     #[ORM\ManyToOne(inversedBy'primaryNotes')]
  26.     #[ORM\JoinColumn(nullablefalse)]
  27.     private ?SchoolYear $year null;
  28.     #[ORM\ManyToOne(inversedBy'primaryNotes')]
  29.     #[ORM\JoinColumn(nullablefalse)]
  30.     private ?User $author null;
  31.     #[ORM\ManyToOne(inversedBy'primaryNotes')]
  32.     private ?User $editor null;
  33.     #[ORM\ManyToOne(inversedBy'primaryNotes')]
  34.     #[ORM\JoinColumn(nullablefalse)]
  35.     private ?School $school null;
  36.     #[ORM\ManyToOne(inversedBy'primaryNotes')]
  37.     #[ORM\JoinColumn(nullablefalse)]
  38.     private ?PrimaryParentNote $parentNote null;
  39.     public function __construct()
  40.     {
  41.         $this->primaryNotes = new ArrayCollection();
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getNote(): ?float
  48.     {
  49.         return $this->note;
  50.     }
  51.     public function setNote(float $note): static
  52.     {
  53.         $this->note $note;
  54.         return $this;
  55.     }
  56.     public function getStudent(): ?Student
  57.     {
  58.         return $this->student;
  59.     }
  60.     public function setStudent(?Student $student): static
  61.     {
  62.         $this->student $student;
  63.         return $this;
  64.     }
  65.     public function getClasse(): ?TheClass
  66.     {
  67.         return $this->classe;
  68.     }
  69.     public function setClasse(?TheClass $classe): static
  70.     {
  71.         $this->classe $classe;
  72.         return $this;
  73.     }
  74.     public function getSubject(): ?Subject
  75.     {
  76.         return $this->subject;
  77.     }
  78.     public function setSubject(?Subject $subject): static
  79.     {
  80.         $this->subject $subject;
  81.         return $this;
  82.     }
  83.     public function getYear(): ?SchoolYear
  84.     {
  85.         return $this->year;
  86.     }
  87.     public function setYear(?SchoolYear $year): static
  88.     {
  89.         $this->year $year;
  90.         return $this;
  91.     }
  92.     public function getAuthor(): ?User
  93.     {
  94.         return $this->author;
  95.     }
  96.     public function setAuthor(?User $author): static
  97.     {
  98.         $this->author $author;
  99.         return $this;
  100.     }
  101.     public function getEditor(): ?User
  102.     {
  103.         return $this->editor;
  104.     }
  105.     public function setEditor(?User $editor): static
  106.     {
  107.         $this->editor $editor;
  108.         return $this;
  109.     }
  110.     public function getSchool(): ?School
  111.     {
  112.         return $this->school;
  113.     }
  114.     public function setSchool(?School $school): static
  115.     {
  116.         $this->school $school;
  117.         return $this;
  118.     }
  119.     public function getParentNote(): ?PrimaryParentNote
  120.     {
  121.         return $this->parentNote;
  122.     }
  123.     public function setParentNote(?PrimaryParentNote $parentNote): static
  124.     {
  125.         $this->parentNote $parentNote;
  126.         return $this;
  127.     }
  128. }