<?php
namespace App\Entity;
use App\Repository\TeacherQRCodeRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ORM\Entity(repositoryClass=TeacherQRCodeRepository::class)
*/
class TeacherQRCode
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private int $id;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private ?bool $checked = null;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $documentPath = null;
/**
* @ORM\OneToOne(targetEntity=Teacher::class, inversedBy="qrCode", cascade={"persist", "remove"})
*/
private Teacher $teacher;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTimeInterface $uploadedAt = null;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTimeInterface $updatedAt = null;
/**
* @ORM\Column(type="text", nullable=true)
*/
private ?string $comment = null;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private ?int $notificationLevel = null;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private ?\DateTimeInterface $notifiedAt = null;
public function getId(): int
{
return $this->id;
}
public function setId(int $id): void
{
$this->id = $id;
}
public function getChecked(): ?bool
{
return $this->checked;
}
public function setChecked(?bool $checked): void
{
$this->checked = $checked;
}
public function getDocumentPath(): ?string
{
return $this->documentPath;
}
public function setDocumentPath(?string $documentPath): void
{
$this->documentPath = $documentPath;
}
public function getTeacher(): Teacher
{
return $this->teacher;
}
public function setTeacher(Teacher $teacher): void
{
$this->teacher = $teacher;
}
public function getUploadedAt(): ?\DateTimeInterface
{
return $this->uploadedAt;
}
public function setUploadedAt(?\DateTimeInterface $uploadedAt): void
{
$this->uploadedAt = $uploadedAt;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
{
$this->updatedAt = $updatedAt;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): void
{
$this->comment = $comment;
}
public function getNotificationLevel(): ?int
{
return $this->notificationLevel;
}
public function setNotificationLevel(?int $notificationLevel): void
{
$this->notificationLevel = $notificationLevel;
}
public function getNotifiedAt(): ?\DateTimeInterface
{
return $this->notifiedAt;
}
public function setNotifiedAt(?\DateTimeInterface $notifiedAt): void
{
$this->notifiedAt = $notifiedAt;
}
}