<?php
namespace App\Entity;
use App\Repository\AdmissionLimitRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AdmissionLimitRepository::class)]
class AdmissionLimit
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?float $start = null;
#[ORM\ManyToOne(inversedBy: 'admissionLimits')]
#[ORM\JoinColumn(nullable: false)]
private ?SchoolYear $year = null;
#[ORM\ManyToOne(inversedBy: 'admissionLimits')]
#[ORM\JoinColumn(nullable: false)]
private ?School $school = null;
public function getId(): ?int
{
return $this->id;
}
public function getStart(): ?float
{
return $this->start;
}
public function setStart(float $start): static
{
$this->start = $start;
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;
}
}