<?php
namespace App\Entity;
use App\Utils\ExtendedEntity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\InquiryDiscussionEntryRepository")
*/
class InquiryDiscussionEntry
{
use ExtendedEntity;
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Inquiry", inversedBy="inquiryDiscussionEntries")
* @ORM\JoinColumn(nullable=false)
*/
private $inquiry;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Customer")
* @ORM\JoinColumn(nullable=false)
*/
private $author;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Customer")
* @ORM\JoinColumn(nullable=true)
*/
private $recipient;
/**
* @ORM\Column(type="text")
*/
private $content;
public function getId(): ?int
{
return $this->id;
}
public function getInquiry(): ?Inquiry
{
return $this->inquiry;
}
public function setInquiry(?Inquiry $inquiry): self
{
$this->inquiry = $inquiry;
return $this;
}
public function getAuthor(): ?Customer
{
return $this->author;
}
public function setAuthor(?Customer $author): self
{
$this->author = $author;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(string $content): self
{
$this->content = $content;
return $this;
}
public function getRecipient(): ?Customer
{
return $this->recipient;
}
public function setRecipient(?Customer $recipient): void
{
$this->recipient = $recipient;
}
}