<?php
namespace App\Entity;
use App\Repository\TutorNoShowIncidentRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TutorNoShowIncidentRepository::class)
*/
class TutorNoShowIncident
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Lesson::class)
* @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
*/
private $lesson;
/**
* @ORM\ManyToOne(targetEntity=Teacher::class)
* @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
*/
private $teacher;
/**
* @ORM\ManyToOne(targetEntity=Child::class)
* @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
*/
private $child;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $teacherName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $teacherIndividualNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $childName;
/**
* @ORM\Column(type="datetime")
*/
private $lessonStartTime;
/**
* @ORM\Column(type="datetime")
*/
private $recordedAt;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $daysSinceFirstLesson;
public function __construct()
{
$this->recordedAt = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getLesson(): ?Lesson
{
return $this->lesson;
}
public function setLesson(?Lesson $lesson): self
{
$this->lesson = $lesson;
return $this;
}
public function getTeacher(): ?Teacher
{
return $this->teacher;
}
public function setTeacher(?Teacher $teacher): self
{
$this->teacher = $teacher;
return $this;
}
public function getChild(): ?Child
{
return $this->child;
}
public function setChild(?Child $child): self
{
$this->child = $child;
return $this;
}
public function getTeacherName(): ?string
{
return $this->teacherName;
}
public function setTeacherName(?string $teacherName): self
{
$this->teacherName = $teacherName;
return $this;
}
public function getTeacherIndividualNumber(): ?string
{
return $this->teacherIndividualNumber;
}
public function setTeacherIndividualNumber(?string $teacherIndividualNumber): self
{
$this->teacherIndividualNumber = $teacherIndividualNumber;
return $this;
}
public function getChildName(): ?string
{
return $this->childName;
}
public function setChildName(?string $childName): self
{
$this->childName = $childName;
return $this;
}
public function getLessonStartTime(): ?\DateTimeInterface
{
return $this->lessonStartTime;
}
public function setLessonStartTime(\DateTimeInterface $lessonStartTime): self
{
$this->lessonStartTime = $lessonStartTime;
return $this;
}
public function getRecordedAt(): ?\DateTimeInterface
{
return $this->recordedAt;
}
public function setRecordedAt(\DateTimeInterface $recordedAt): self
{
$this->recordedAt = $recordedAt;
return $this;
}
public function getDaysSinceFirstLesson(): ?int
{
return $this->daysSinceFirstLesson;
}
public function setDaysSinceFirstLesson(?int $daysSinceFirstLesson): self
{
$this->daysSinceFirstLesson = $daysSinceFirstLesson;
return $this;
}
}