<?php
namespace App\Entity;
use App\Repository\SubPeriodRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SubPeriodRepository::class)]
class SubPeriod
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Period::class, inversedBy: 'subPeriods')]
#[ORM\JoinColumn(nullable: false)]
private ?Period $period;
#[ORM\Column(type: 'date')]
private ?\DateTimeInterface $start_date = null;
#[ORM\Column(type: 'date')]
private ?\DateTime $end_date = null;
#[ORM\Column(type: 'float')]
private ?float $pointsPerExam = null;
public function getId(): ?int
{
return $this->id;
}
public function getPeriod(): ?Period
{
return $this->period;
}
public function setPeriod(?Period $period): self
{
$this->period = $period;
return $this;
}
public function getStartDate(): ?\DateTimeInterface
{
return $this->start_date;
}
public function setStartDate(\DateTimeInterface $start_date): self
{
$this->start_date = $start_date;
return $this;
}
public function getEndDate(): ?\DateTime
{
return $this->end_date;
}
public function setEndDate(\DateTime $end_date): self
{
$this->end_date = $end_date;
return $this;
}
public function getPointsPerExam(): ?float
{
return $this->pointsPerExam;
}
public function setPointsPerExam(float $pointsPerExam): self
{
$this->pointsPerExam = $pointsPerExam;
return $this;
}
}