<?php
namespace App\Entity;
use App\Repository\PrimaryNoteRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PrimaryNoteRepository::class)]
class PrimaryNote
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?float $note = null;
#[ORM\ManyToOne(inversedBy: 'primaryNotes')]
#[ORM\JoinColumn(nullable: false)]
private ?Student $student = null;
#[ORM\ManyToOne(inversedBy: 'primaryNotes')]
#[ORM\JoinColumn(nullable: false)]
private ?TheClass $classe = null;
#[ORM\ManyToOne(inversedBy: 'primaryNotes')]
#[ORM\JoinColumn(nullable: false)]
private ?Subject $subject = null;
#[ORM\ManyToOne(inversedBy: 'primaryNotes')]
#[ORM\JoinColumn(nullable: false)]
private ?SchoolYear $year = null;
#[ORM\ManyToOne(inversedBy: 'primaryNotes')]
#[ORM\JoinColumn(nullable: false)]
private ?User $author = null;
#[ORM\ManyToOne(inversedBy: 'primaryNotes')]
private ?User $editor = null;
#[ORM\ManyToOne(inversedBy: 'primaryNotes')]
#[ORM\JoinColumn(nullable: false)]
private ?School $school = null;
#[ORM\ManyToOne(inversedBy: 'primaryNotes')]
#[ORM\JoinColumn(nullable: false)]
private ?PrimaryParentNote $parentNote = null;
public function __construct()
{
$this->primaryNotes = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getNote(): ?float
{
return $this->note;
}
public function setNote(float $note): static
{
$this->note = $note;
return $this;
}
public function getStudent(): ?Student
{
return $this->student;
}
public function setStudent(?Student $student): static
{
$this->student = $student;
return $this;
}
public function getClasse(): ?TheClass
{
return $this->classe;
}
public function setClasse(?TheClass $classe): static
{
$this->classe = $classe;
return $this;
}
public function getSubject(): ?Subject
{
return $this->subject;
}
public function setSubject(?Subject $subject): static
{
$this->subject = $subject;
return $this;
}
public function getYear(): ?SchoolYear
{
return $this->year;
}
public function setYear(?SchoolYear $year): static
{
$this->year = $year;
return $this;
}
public function getAuthor(): ?User
{
return $this->author;
}
public function setAuthor(?User $author): static
{
$this->author = $author;
return $this;
}
public function getEditor(): ?User
{
return $this->editor;
}
public function setEditor(?User $editor): static
{
$this->editor = $editor;
return $this;
}
public function getSchool(): ?School
{
return $this->school;
}
public function setSchool(?School $school): static
{
$this->school = $school;
return $this;
}
public function getParentNote(): ?PrimaryParentNote
{
return $this->parentNote;
}
public function setParentNote(?PrimaryParentNote $parentNote): static
{
$this->parentNote = $parentNote;
return $this;
}
}