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.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $cachet null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getHeadName(): ?string
  31.     {
  32.         return $this->headName;
  33.     }
  34.     public function setHeadName(string $headName): static
  35.     {
  36.         $this->headName $headName;
  37.         return $this;
  38.     }
  39.     public function getHeadSexe(): ?string
  40.     {
  41.         return $this->headSexe;
  42.     }
  43.     public function setHeadSexe(string $headSexe): static
  44.     {
  45.         $this->headSexe $headSexe;
  46.         return $this;
  47.     }
  48.     public function getHeadStatus(): ?string
  49.     {
  50.         return $this->headStatus;
  51.     }
  52.     public function setHeadStatus(?string $headStatus): static
  53.     {
  54.         $this->headStatus $headStatus;
  55.         return $this;
  56.     }
  57.     public function getYear(): ?SchoolYear
  58.     {
  59.         return $this->year;
  60.     }
  61.     public function setYear(?SchoolYear $year): static
  62.     {
  63.         $this->year $year;
  64.         return $this;
  65.     }
  66.     public function getSchool(): ?School
  67.     {
  68.         return $this->school;
  69.     }
  70.     public function setSchool(?School $school): static
  71.     {
  72.         $this->school $school;
  73.         return $this;
  74.     }
  75.     public function getCachet(): ?string
  76.     {
  77.         return $this->cachet;
  78.     }
  79.     public function setCachet(?string $cachet): static
  80.     {
  81.         $this->cachet $cachet;
  82.         return $this;
  83.     }
  84. }