<?php
namespace App\Entity;
use App\Repository\SchoolYearInfosRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SchoolYearInfosRepository::class)]
class SchoolYearInfos
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $headName = null;
#[ORM\Column(length: 255)]
private ?string $headSexe = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $headStatus = null;
#[ORM\ManyToOne(inversedBy: 'schoolYearInfos')]
#[ORM\JoinColumn(nullable: false)]
private ?SchoolYear $year = null;
#[ORM\ManyToOne(inversedBy: 'schoolYearInfos')]
#[ORM\JoinColumn(nullable: false)]
private ?School $school = null;
public function getId(): ?int
{
return $this->id;
}
public function getHeadName(): ?string
{
return $this->headName;
}
public function setHeadName(string $headName): static
{
$this->headName = $headName;
return $this;
}
public function getHeadSexe(): ?string
{
return $this->headSexe;
}
public function setHeadSexe(string $headSexe): static
{
$this->headSexe = $headSexe;
return $this;
}
public function getHeadStatus(): ?string
{
return $this->headStatus;
}
public function setHeadStatus(?string $headStatus): static
{
$this->headStatus = $headStatus;
return $this;
}
public function getYear(): ?SchoolYear
{
return $this->year;
}
public function setYear(?SchoolYear $year): static
{
$this->year = $year;
return $this;
}
public function getSchool(): ?School
{
return $this->school;
}
public function setSchool(?School $school): static
{
$this->school = $school;
return $this;
}
}