src/Entity/Request/RequestComment.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Request;
  3. use App\Entity\Client\SupportUser;
  4. use App\Entity\Request\RequestForm;
  5. use App\Entity\User\User;
  6. use App\Repository\Request\RequestCommentRepository;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassRequestCommentRepository::class)]
  10. class RequestComment
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'requestComments')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?RequestForm $requestForm null;
  19.     #[ORM\ManyToOne(inversedBy'requestComments')]
  20.     private ?User $user null;
  21.     #[ORM\ManyToOne(inversedBy'requestComments')]
  22.     private ?SupportUser $supportUser null;
  23.     
  24.     #[ORM\Column(length255)]
  25.     private ?string $comment null;
  26.     #[ORM\Column]
  27.     private ?bool $share null;
  28.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  29.     private ?\DateTimeInterface $sentDate null;
  30.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  31.     private ?\DateTimeInterface $deletedDate null;
  32.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  33.     private ?\DateTimeInterface $createdDate null;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getRequestForm(): ?RequestForm
  39.     {
  40.         return $this->requestForm;
  41.     }
  42.     public function setRequestForm(?RequestForm $requestForm): static
  43.     {
  44.         $this->requestForm $requestForm;
  45.         return $this;
  46.     }
  47.     public function getComment(): ?string
  48.     {
  49.         return $this->comment;
  50.     }
  51.     public function setComment(string $comment): static
  52.     {
  53.         $this->comment $comment;
  54.         return $this;
  55.     }
  56.     public function isShare(): ?bool
  57.     {
  58.         return $this->share;
  59.     }
  60.     public function setShare(bool $share): static
  61.     {
  62.         $this->share $share;
  63.         return $this;
  64.     }
  65.     public function getSentDate(): ?\DateTimeInterface
  66.     {
  67.         return $this->sentDate;
  68.     }
  69.     public function setSentDate(\DateTimeInterface $sentDate): static
  70.     {
  71.         $this->sentDate $sentDate;
  72.         return $this;
  73.     }
  74.     public function getDeletedDate(): ?\DateTimeInterface
  75.     {
  76.         return $this->deletedDate;
  77.     }
  78.     public function setDeletedDate(\DateTimeInterface $deletedDate): static
  79.     {
  80.         $this->deletedDate $deletedDate;
  81.         return $this;
  82.     }
  83.     public function getCreatedDate(): ?\DateTimeInterface
  84.     {
  85.         return $this->createdDate;
  86.     }
  87.     public function setCreatedDate(?\DateTimeInterface $createdDate): static
  88.     {
  89.         $this->createdDate $createdDate;
  90.         return $this;
  91.     }
  92.     public function getUser(): ?User
  93.     {
  94.         return $this->user;
  95.     }
  96.     public function setUser(?User $user): static
  97.     {
  98.         $this->user $user;
  99.         return $this;
  100.     }
  101.     public function getSupportUser(): ?SupportUser
  102.     {
  103.         return $this->supportUser;
  104.     }
  105.     public function setSupportUser(?SupportUser $supportUser): static
  106.     {
  107.         $this->supportUser $supportUser;
  108.         return $this;
  109.     }
  110. }