<?php
namespace App\Entity;
use App\Repository\RecruitApplicationCommentRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RecruitApplicationCommentRepository::class)]
class RecruitApplicationComment
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'recruitApplicationComments')]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
private ?RecruitApplication $application = null;
#[ORM\ManyToOne(inversedBy: 'recruitApplicationCommentsMultiple')]
#[ORM\JoinColumn(nullable: false)]
private ?User $commentBy = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $comment = null;
#[ORM\Column(nullable: true)]
private ?\DateTimeImmutable $createdAt = null;
public function getId(): ?int
{
return $this->id;
}
public function getApplication(): ?RecruitApplication
{
return $this->application;
}
public function setApplication(?RecruitApplication $application): self
{
$this->application = $application;
return $this;
}
public function getCommentBy(): ?User
{
return $this->commentBy;
}
public function setCommentBy(?User $commentBy): self
{
$this->commentBy = $commentBy;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}