<?phpnamespace App\Entity;use App\Repository\ForumReportRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ForumReportRepository::class) */class ForumReport{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private ?int $id; /** * @ORM\Column(type="string", length=255, nullable=true) */ private ?string $type; /** * @ORM\Column(type="text", nullable=true) */ private ?string $remarque; /** * @ORM\ManyToOne(targetEntity=ForumPost::class) */ private ?ForumPost $post; /** * @ORM\ManyToOne(targetEntity=ForumComment::class) */ private ?ForumComment $comment; /** * @ORM\ManyToOne(targetEntity=ForumCommentReply::class) */ private ?ForumCommentReply $commentReply; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=ForumUser::class) */ private $forumUser; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; } public function getRemarque(): ?string { return $this->remarque; } public function setRemarque(?string $remarque): self { $this->remarque = $remarque; return $this; } public function getPost(): ?ForumPost { return $this->post; } public function setPost(?ForumPost $post): self { $this->post = $post; return $this; } public function getComment(): ?ForumComment { return $this->comment; } public function setComment(?ForumComment $comment): self { $this->comment = $comment; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getForumUser(): ?ForumUser { return $this->forumUser; } public function setForumUser(?ForumUser $forumUser): self { $this->forumUser = $forumUser; return $this; } public function getCommentReply(): ?ForumCommentReply { return $this->commentReply; } public function setCommentReply(?ForumCommentReply $commentReply): static { $this->commentReply = $commentReply; return $this; }}