<?phpnamespace App\Entity;use App\Repository\ContactCommentRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ContactCommentRepository::class) */class ContactComment{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="text", nullable=true) */ private $comment; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="contactComments") */ private $contact; /** * @ORM\Column(type="datetime") */ private $createdDate; /** * @ORM\ManyToOne(targetEntity=Enterprise::class, inversedBy="contactComments") */ private $enterprise; public function __construct() { $this->createdDate = new \Datetime(); } public function getId(): ?int { return $this->id; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): self { $this->comment = $comment; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getContact(): ?Contact { return $this->contact; } public function setContact(?Contact $contact): self { $this->contact = $contact; return $this; } public function getCreatedDate(): ?\DateTimeInterface { return $this->createdDate; } public function setCreatedDate(\DateTimeInterface $createdDate): self { $this->createdDate = $createdDate; return $this; } public function getEnterprise(): ?Enterprise { return $this->enterprise; } public function setEnterprise(?Enterprise $enterprise): self { $this->enterprise = $enterprise; return $this; }}