src/Entity/Flagged.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Timestampable\Traits\TimestampableEntity;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\FlaggedRepository")
  7.  */
  8. class Flagged
  9. {
  10.     use TimestampableEntity;
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="App\Entity\UserComment")
  19.      * @ORM\JoinColumn(nullable=true, onDelete="CASCADE")
  20.      */
  21.     private $userComment;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="App\Entity\Review")
  24.      * @ORM\JoinColumn(nullable=true, onDelete="CASCADE")
  25.      */
  26.     private $review;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  29.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  30.      */
  31.     private $user;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="flaggeds")
  34.      * @ORM\JoinColumn(nullable=true, onDelete="CASCADE")
  35.      */
  36.     private $flagger;
  37.     /**
  38.      * @ORM\Column(type="text", nullable=true)
  39.      */
  40.     private $blacklistKeywords;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getBlacklistKeywords(): ?string
  46.     {
  47.         return $this->blacklistKeywords;
  48.     }
  49.     public function setBlacklistKeywords(?string $blackListKeywords): self
  50.     {
  51.         $this->blacklistKeywords $blackListKeywords;
  52.         return $this;
  53.     }
  54.     public function getUserComment(): ?UserComment
  55.     {
  56.         return $this->userComment;
  57.     }
  58.     public function setUserComment(?UserComment $userComment): self
  59.     {
  60.         $this->userComment $userComment;
  61.         return $this;
  62.     }
  63.     public function getReview(): ?Review
  64.     {
  65.         return $this->review;
  66.     }
  67.     public function setReview(?Review $review): self
  68.     {
  69.         $this->review $review;
  70.         return $this;
  71.     }
  72.     public function getUser(): ?User
  73.     {
  74.         return $this->user;
  75.     }
  76.     public function setUser(?User $user): self
  77.     {
  78.         $this->user $user;
  79.         return $this;
  80.     }
  81.     public function getFlagger(): ?User
  82.     {
  83.         return $this->flagger;
  84.     }
  85.     public function setFlagger(?User $flagger): self
  86.     {
  87.         $this->flagger $flagger;
  88.         return $this;
  89.     }
  90. }