src/Entity/InquiryDiscussionEntry.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Utils\ExtendedEntity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\InquiryDiscussionEntryRepository")
  7.  */
  8. class InquiryDiscussionEntry
  9. {
  10.     use ExtendedEntity;
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="App\Entity\Inquiry", inversedBy="inquiryDiscussionEntries")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $inquiry;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity="App\Entity\Customer")
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $author;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity="App\Entity\Customer")
  29.      * @ORM\JoinColumn(nullable=true)
  30.      */
  31.     private $recipient;
  32.     /**
  33.      * @ORM\Column(type="text")
  34.      */
  35.     private $content;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getInquiry(): ?Inquiry
  41.     {
  42.         return $this->inquiry;
  43.     }
  44.     public function setInquiry(?Inquiry $inquiry): self
  45.     {
  46.         $this->inquiry $inquiry;
  47.         return $this;
  48.     }
  49.     public function getAuthor(): ?Customer
  50.     {
  51.         return $this->author;
  52.     }
  53.     public function setAuthor(?Customer $author): self
  54.     {
  55.         $this->author $author;
  56.         return $this;
  57.     }
  58.     public function getContent(): ?string
  59.     {
  60.         return $this->content;
  61.     }
  62.     public function setContent(string $content): self
  63.     {
  64.         $this->content $content;
  65.         return $this;
  66.     }
  67.     public function getRecipient(): ?Customer
  68.     {
  69.         return $this->recipient;
  70.     }
  71.     public function setRecipient(?Customer $recipient): void
  72.     {
  73.         $this->recipient $recipient;
  74.     }
  75. }