<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @ORM\Entity(repositoryClass="App\Repository\FlaggedRepository")
*/
class Flagged
{
use TimestampableEntity;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\UserComment")
* @ORM\JoinColumn(nullable=true, onDelete="CASCADE")
*/
private $userComment;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Review")
* @ORM\JoinColumn(nullable=true, onDelete="CASCADE")
*/
private $review;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="flaggeds")
* @ORM\JoinColumn(nullable=true, onDelete="CASCADE")
*/
private $flagger;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $blacklistKeywords;
public function getId(): ?int
{
return $this->id;
}
public function getBlacklistKeywords(): ?string
{
return $this->blacklistKeywords;
}
public function setBlacklistKeywords(?string $blackListKeywords): self
{
$this->blacklistKeywords = $blackListKeywords;
return $this;
}
public function getUserComment(): ?UserComment
{
return $this->userComment;
}
public function setUserComment(?UserComment $userComment): self
{
$this->userComment = $userComment;
return $this;
}
public function getReview(): ?Review
{
return $this->review;
}
public function setReview(?Review $review): self
{
$this->review = $review;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getFlagger(): ?User
{
return $this->flagger;
}
public function setFlagger(?User $flagger): self
{
$this->flagger = $flagger;
return $this;
}
}