<?phpnamespace App\Entity;use App\Repository\LearningProgressRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=LearningProgressRepository::class) */class LearningProgress{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Enrollment::class, inversedBy="learningProgress") * @ORM\JoinColumn(nullable=false) */ private $enrollment; /** * @ORM\ManyToOne(targetEntity=Module::class, inversedBy="learningProgress") * @ORM\JoinColumn(nullable=false) */ private $module; /** * @ORM\Column(type="datetime") */ private $startAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $endAt; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $status; public function getId(): ?int { return $this->id; } public function getEnrollment(): ?Enrollment { return $this->enrollment; } public function setEnrollment(?Enrollment $enrollment): self { $this->enrollment = $enrollment; return $this; } public function getModule(): ?Module { return $this->module; } public function setModule(?Module $module): self { $this->module = $module; return $this; } public function getStartAt(): ?\DateTimeInterface { return $this->startAt; } public function setStartAt(\DateTimeInterface $startAt): self { $this->startAt = $startAt; return $this; } public function getEndAt(): ?\DateTimeInterface { return $this->endAt; } public function setEndAt(?\DateTimeInterface $endAt): self { $this->endAt = $endAt; return $this; } public function getStatus(): ?string { return $this->status; } public function setStatus(?string $status): self { $this->status = $status; return $this; }}