src/Entity/ForumReport.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ForumReportRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ForumReportRepository::class)
  8.  */
  9. class ForumReport
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private ?int $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private ?string $type;
  21.     /**
  22.      * @ORM\Column(type="text", nullable=true)
  23.      */
  24.     private ?string $remarque;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=ForumPost::class)
  27.      */
  28.     private ?ForumPost $post;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=ForumComment::class)
  31.      */
  32.     private ?ForumComment $comment;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=ForumCommentReply::class)
  35.      */
  36.     private ?ForumCommentReply $commentReply;
  37.     /**
  38.      * @ORM\Column(type="datetime")
  39.      */
  40.     private $createdAt;
  41.     /**
  42.      * @ORM\ManyToOne(targetEntity=ForumUser::class)
  43.      */
  44.     private $forumUser;
  45.     public function __construct()
  46.     {
  47.         $this->createdAt = new \DateTime();
  48.     }
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getType(): ?string
  54.     {
  55.         return $this->type;
  56.     }
  57.     public function setType(?string $type): self
  58.     {
  59.         $this->type $type;
  60.         return $this;
  61.     }
  62.     public function getRemarque(): ?string
  63.     {
  64.         return $this->remarque;
  65.     }
  66.     public function setRemarque(?string $remarque): self
  67.     {
  68.         $this->remarque $remarque;
  69.         return $this;
  70.     }
  71.     public function getPost(): ?ForumPost
  72.     {
  73.         return $this->post;
  74.     }
  75.     public function setPost(?ForumPost $post): self
  76.     {
  77.         $this->post $post;
  78.         return $this;
  79.     }
  80.     public function getComment(): ?ForumComment
  81.     {
  82.         return $this->comment;
  83.     }
  84.     public function setComment(?ForumComment $comment): self
  85.     {
  86.         $this->comment $comment;
  87.         return $this;
  88.     }
  89.     public function getCreatedAt(): ?\DateTimeInterface
  90.     {
  91.         return $this->createdAt;
  92.     }
  93.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  94.     {
  95.         $this->createdAt $createdAt;
  96.         return $this;
  97.     }
  98.     public function getForumUser(): ?ForumUser
  99.     {
  100.         return $this->forumUser;
  101.     }
  102.     public function setForumUser(?ForumUser $forumUser): self
  103.     {
  104.         $this->forumUser $forumUser;
  105.         return $this;
  106.     }
  107.     public function getCommentReply(): ?ForumCommentReply
  108.     {
  109.         return $this->commentReply;
  110.     }
  111.     public function setCommentReply(?ForumCommentReply $commentReply): static
  112.     {
  113.         $this->commentReply $commentReply;
  114.         return $this;
  115.     }
  116. }