<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\AbsenceLogRepository")
*/
class AbsenceLog
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity="App\Entity\PaidCourseList", inversedBy="absenceLog")
* @ORM\JoinColumn(nullable=false)
*/
private $courseToCatchUp;
/**
* @ORM\Column(type="boolean")
*/
private $wasCaughtUp;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\SubscriptionOrder", inversedBy="absenceLogs")
*/
private $subscription;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\SessionOrder", inversedBy="absenceLogs")
*/
private $groupSession;
/*
/**
* @ORM\OneToOne(targetEntity="App\Entity\TeacherSchedule", inversedBy="absenceLog", cascade={"persist", "remove"})
*/
//private $catchUpSchedule;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $catchUpDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isCanceled;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isAbandoned;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\TeacherSchedule", inversedBy="absenceLogs")
*/
private $catchUpSchedule;
public function getId(): ?int
{
return $this->id;
}
public function getCourseToCatchUp(): ?PaidCourseList
{
return $this->courseToCatchUp;
}
public function setCourseToCatchUp(?PaidCourseList $courseToCatchUp): self
{
$this->courseToCatchUp = $courseToCatchUp;
return $this;
}
public function getWasCaughtUp(): ?bool
{
return $this->wasCaughtUp;
}
public function setWasCaughtUp(bool $wasCaughtUp): self
{
$this->wasCaughtUp = $wasCaughtUp;
return $this;
}
public function getSubscription(): ?SubscriptionOrder
{
return $this->subscription;
}
public function setSubscription(?SubscriptionOrder $subscription): self
{
$this->subscription = $subscription;
return $this;
}
public function getGroupSession(): ?SessionOrder
{
return $this->groupSession;
}
public function setGroupSession(?SessionOrder $groupSession): self
{
$this->groupSession = $groupSession;
return $this;
}
/*
public function getCatchUpSchedule(): ?TeacherSchedule
{
return $this->catchUpSchedule;
}
public function setCatchUpSchedule(?TeacherSchedule $catchUpSchedule): self
{
$this->catchUpSchedule = $catchUpSchedule;
return $this;
}
*/
public function getCatchUpDate(): ?\DateTimeInterface
{
return $this->catchUpDate;
}
public function setCatchUpDate(?\DateTimeInterface $catchUpDate): self
{
$this->catchUpDate = $catchUpDate;
return $this;
}
public function getIsCanceled(): ?bool
{
return $this->isCanceled;
}
public function setIsCanceled(?bool $isCanceled): self
{
$this->isCanceled = $isCanceled;
return $this;
}
public function getIsAbandoned(): ?bool
{
return $this->isAbandoned;
}
public function setIsAbandoned(bool $isAbandoned): self
{
$this->isAbandoned = $isAbandoned;
return $this;
}
public function getCatchUpSchedule(): ?TeacherSchedule
{
return $this->catchUpSchedule;
}
public function setCatchUpSchedule(?TeacherSchedule $catchUpSchedule): self
{
$this->catchUpSchedule = $catchUpSchedule;
return $this;
}
}