src/Entity/Competence.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CompetenceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCompetenceRepository::class)]
  6. class Competence
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'competences')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?Exams $exam null;
  15.     #[ORM\ManyToOne(inversedBy'competences')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?Subject $subject null;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private ?string $content null;
  20.     #[ORM\ManyToOne(inversedBy'competences')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?School $school null;
  23.     #[ORM\ManyToOne(inversedBy'competences')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?TheClass $classe null;
  26.     #[ORM\ManyToOne(inversedBy'competences')]
  27.     #[ORM\JoinColumn(nullablefalse)]
  28.     private ?SchoolYear $year null;
  29.     #[ORM\ManyToOne(inversedBy'competences')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private ?User $author null;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getExam(): ?Exams
  37.     {
  38.         return $this->exam;
  39.     }
  40.     public function setExam(?Exams $exam): static
  41.     {
  42.         $this->exam $exam;
  43.         return $this;
  44.     }
  45.     public function getSubject(): ?Subject
  46.     {
  47.         return $this->subject;
  48.     }
  49.     public function setSubject(?Subject $subject): static
  50.     {
  51.         $this->subject $subject;
  52.         return $this;
  53.     }
  54.     public function getContent(): ?string
  55.     {
  56.         return $this->content;
  57.     }
  58.     public function setContent(?string $content): static
  59.     {
  60.         $this->content $content;
  61.         return $this;
  62.     }
  63.     public function getSchool(): ?School
  64.     {
  65.         return $this->school;
  66.     }
  67.     public function setSchool(?School $school): static
  68.     {
  69.         $this->school $school;
  70.         return $this;
  71.     }
  72.     public function getClasse(): ?TheClass
  73.     {
  74.         return $this->classe;
  75.     }
  76.     public function setClasse(?TheClass $classe): static
  77.     {
  78.         $this->classe $classe;
  79.         return $this;
  80.     }
  81.     public function getYear(): ?SchoolYear
  82.     {
  83.         return $this->year;
  84.     }
  85.     public function setYear(?SchoolYear $year): static
  86.     {
  87.         $this->year $year;
  88.         return $this;
  89.     }
  90.     public function getAuthor(): ?User
  91.     {
  92.         return $this->author;
  93.     }
  94.     public function setAuthor(?User $author): static
  95.     {
  96.         $this->author $author;
  97.         return $this;
  98.     }
  99. }