<?phpnamespace App\Entity;use App\Entity\Traits\Timestampable;use App\Repository\SubNoteRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\HasLifecycleCallbacks]#[ORM\Entity(repositoryClass: SubNoteRepository::class)]class SubNote{ use Timestampable; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] #[Groups(['subNote'])] private ?int $id = null; #[ORM\Column(length: 255)] #[Groups(['subNote'])] private ?string $name = null; #[ORM\Column] #[Groups(['subNote'])] private ?float $note = null; #[ORM\Column] #[Groups(['subNote'])] private ?float $percentage = null; #[ORM\ManyToOne(inversedBy: 'subNotes')] #[ORM\JoinColumn(nullable: false)] private ?Subject $subject = null; #[ORM\ManyToOne(inversedBy: 'subNotes')] #[ORM\JoinColumn(nullable: false)] private ?TheClass $classe = null; #[ORM\ManyToOne(inversedBy: 'subNotes')] #[ORM\JoinColumn(nullable: false)] private ?School $school = null; #[ORM\ManyToOne(inversedBy: 'subNotes')] #[ORM\JoinColumn(nullable: false)] private ?User $author = null; #[ORM\ManyToOne(inversedBy: 'subNotes')] private ?Note $parent = null; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): static { $this->name = $name; return $this; } public function getNote(): ?float { return $this->note; } public function setNote(float $note): static { $this->note = $note; return $this; } public function getPercentage(): ?float { return $this->percentage; } public function setPercentage(float $percentage): static { $this->percentage = $percentage; return $this; } public function getSubject(): ?Subject { return $this->subject; } public function setSubject(?Subject $subject): static { $this->subject = $subject; return $this; } public function getClasse(): ?TheClass { return $this->classe; } public function setClasse(?TheClass $classe): static { $this->classe = $classe; return $this; } public function getSchool(): ?School { return $this->school; } public function setSchool(?School $school): static { $this->school = $school; return $this; } public function getAuthor(): ?User { return $this->author; } public function setAuthor(?User $author): static { $this->author = $author; return $this; } public function getParent(): ?Note { return $this->parent; } public function setParent(?Note $parent): static { $this->parent = $parent; return $this; }}