src/Entity/SchoolYearInfos.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SchoolYearInfosRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSchoolYearInfosRepository::class)]
  6. class SchoolYearInfos
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $headName null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $headSexe null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $headStatus null;
  18.     #[ORM\ManyToOne(inversedBy'schoolYearInfos')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?SchoolYear $year null;
  21.     #[ORM\ManyToOne(inversedBy'schoolYearInfos')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?School $school null;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getHeadName(): ?string
  29.     {
  30.         return $this->headName;
  31.     }
  32.     public function setHeadName(string $headName): static
  33.     {
  34.         $this->headName $headName;
  35.         return $this;
  36.     }
  37.     public function getHeadSexe(): ?string
  38.     {
  39.         return $this->headSexe;
  40.     }
  41.     public function setHeadSexe(string $headSexe): static
  42.     {
  43.         $this->headSexe $headSexe;
  44.         return $this;
  45.     }
  46.     public function getHeadStatus(): ?string
  47.     {
  48.         return $this->headStatus;
  49.     }
  50.     public function setHeadStatus(?string $headStatus): static
  51.     {
  52.         $this->headStatus $headStatus;
  53.         return $this;
  54.     }
  55.     public function getYear(): ?SchoolYear
  56.     {
  57.         return $this->year;
  58.     }
  59.     public function setYear(?SchoolYear $year): static
  60.     {
  61.         $this->year $year;
  62.         return $this;
  63.     }
  64.     public function getSchool(): ?School
  65.     {
  66.         return $this->school;
  67.     }
  68.     public function setSchool(?School $school): static
  69.     {
  70.         $this->school $school;
  71.         return $this;
  72.     }
  73. }