<?php
namespace App\Entity\Request;
use App\Entity\Client\SupportUser;
use App\Entity\Request\RequestForm;
use App\Entity\User\User;
use App\Repository\Request\RequestCommentRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RequestCommentRepository::class)]
class RequestComment
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'requestComments')]
#[ORM\JoinColumn(nullable: false)]
private ?RequestForm $requestForm = null;
#[ORM\ManyToOne(inversedBy: 'requestComments')]
private ?User $user = null;
#[ORM\ManyToOne(inversedBy: 'requestComments')]
private ?SupportUser $supportUser = null;
#[ORM\Column(length: 255)]
private ?string $comment = null;
#[ORM\Column]
private ?bool $share = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $sentDate = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $deletedDate = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createdDate = null;
public function getId(): ?int
{
return $this->id;
}
public function getRequestForm(): ?RequestForm
{
return $this->requestForm;
}
public function setRequestForm(?RequestForm $requestForm): static
{
$this->requestForm = $requestForm;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(string $comment): static
{
$this->comment = $comment;
return $this;
}
public function isShare(): ?bool
{
return $this->share;
}
public function setShare(bool $share): static
{
$this->share = $share;
return $this;
}
public function getSentDate(): ?\DateTimeInterface
{
return $this->sentDate;
}
public function setSentDate(\DateTimeInterface $sentDate): static
{
$this->sentDate = $sentDate;
return $this;
}
public function getDeletedDate(): ?\DateTimeInterface
{
return $this->deletedDate;
}
public function setDeletedDate(\DateTimeInterface $deletedDate): static
{
$this->deletedDate = $deletedDate;
return $this;
}
public function getCreatedDate(): ?\DateTimeInterface
{
return $this->createdDate;
}
public function setCreatedDate(?\DateTimeInterface $createdDate): static
{
$this->createdDate = $createdDate;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): static
{
$this->user = $user;
return $this;
}
public function getSupportUser(): ?SupportUser
{
return $this->supportUser;
}
public function setSupportUser(?SupportUser $supportUser): static
{
$this->supportUser = $supportUser;
return $this;
}
}