<?phpnamespace App\Entity;use App\Repository\CommentRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CommentRepository::class) */class Comment{ public function __construct() { $this->createdAt = new \Datetime(); $this->isEnabled = false; } /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="string", length=255) */ private $content; /** * @ORM\Column(type="boolean") */ private $isEnabled; /** * @ORM\ManyToOne(targetEntity=Masjid::class, inversedBy="comments") * @ORM\JoinColumn(nullable=false) */ private $masjid; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="comments") * @ORM\JoinColumn(nullable=false) */ private $Author; public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getContent(): ?string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getIsEnabled(): ?bool { return $this->isEnabled; } public function setIsEnabled(bool $isEnabled): self { $this->isEnabled = $isEnabled; return $this; } public function getMasjid(): ?Masjid { return $this->masjid; } public function setMasjid(?Masjid $masjid): self { $this->masjid = $masjid; return $this; } public function getAuthor(): ?User { return $this->Author; } public function setAuthor(?User $Author): self { $this->Author = $Author; return $this; }}