src/Entity/RecruitApplicationComment.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RecruitApplicationCommentRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassRecruitApplicationCommentRepository::class)]
  7. class RecruitApplicationComment
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'recruitApplicationComments')]
  14.     #[ORM\JoinColumn(nullablefalseonDelete'CASCADE')]
  15.     private ?RecruitApplication $application null;
  16.     #[ORM\ManyToOne(inversedBy'recruitApplicationCommentsMultiple')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?User $commentBy null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $comment null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?\DateTimeImmutable $createdAt null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getApplication(): ?RecruitApplication
  28.     {
  29.         return $this->application;
  30.     }
  31.     public function setApplication(?RecruitApplication $application): self
  32.     {
  33.         $this->application $application;
  34.         return $this;
  35.     }
  36.     public function getCommentBy(): ?User
  37.     {
  38.         return $this->commentBy;
  39.     }
  40.     public function setCommentBy(?User $commentBy): self
  41.     {
  42.         $this->commentBy $commentBy;
  43.         return $this;
  44.     }
  45.     public function getComment(): ?string
  46.     {
  47.         return $this->comment;
  48.     }
  49.     public function setComment(string $comment): self
  50.     {
  51.         $this->comment $comment;
  52.         return $this;
  53.     }
  54.     public function getCreatedAt(): ?\DateTimeImmutable
  55.     {
  56.         return $this->createdAt;
  57.     }
  58.     public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  59.     {
  60.         $this->createdAt $createdAt;
  61.         return $this;
  62.     }
  63. }