<?php
namespace App\Entity;
use App\Repository\ChatCensorshipJournalRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=ChatCensorshipJournalRepository::class)
*/
class ChatCensorshipJournal
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups({"CensorshipList"})
*/
private $id;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({"CensorshipList"})
*/
private $createdAt;
/**
* @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="chatCensorshipJournals")
* @Groups({"CensorshipList"})
*/
private $teacher;
/**
* @ORM\ManyToOne(targetEntity=Guardian::class, inversedBy="chatCensorshipJournals")
* @Groups({"CensorshipList"})
*/
private $guardian;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({"CensorshipList"})
*/
private $message;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"CensorshipList"})
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity=Admin::class, inversedBy="chatCensorshipJournals")
* @Groups({"CensorshipList"})
*/
private $hr;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({"CensorshipList"})
*/
private $comment;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({"CensorshipList"})
*/
private $sentBy;
public function getId(): ?int
{
return $this->id;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getTeacher(): ?Teacher
{
return $this->teacher;
}
public function setTeacher(?Teacher $teacher): self
{
$this->teacher = $teacher;
return $this;
}
public function getGuardian(): ?Guardian
{
return $this->guardian;
}
public function setGuardian(?Guardian $guardian): self
{
$this->guardian = $guardian;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getHr(): ?Admin
{
return $this->hr;
}
public function setHr(?Admin $hr): self
{
$this->hr = $hr;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getSentBy(): ?string
{
return $this->sentBy;
}
public function setSentBy(?string $sentBy): self
{
$this->sentBy = $sentBy;
return $this;
}
}