src/Entity/TicketReply.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\TicketReplyRepository")
  6.  * @ORM\Table(name="ticket_replies", indexes={@ORM\Index(name="id_index", columns={"id"})})
  7.  */
  8. class TicketReply
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="datetime", nullable=false)
  18.      */
  19.     private $create_date;
  20.     /**
  21.      * @ORM\Column(type="boolean", nullable=false)
  22.      */
  23.     private $is_support;
  24.     /**
  25.      * @ORM\Column(type="text", nullable=false)
  26.      */
  27.     private $message;
  28.     /**
  29.      * @ORM\Column(type="integer", nullable=false)
  30.      */
  31.     private $rating;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Ticket", inversedBy="ticketReplies")
  34.      * @ORM\JoinColumn(name="ticket_id", referencedColumnName="id", nullable=false)
  35.      */
  36.     private $ticket;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="ticketReplies")
  39.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
  40.      */
  41.     private $user;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getCreateDate(): ?\DateTimeInterface
  47.     {
  48.         return $this->create_date;
  49.     }
  50.     public function setCreateDate(\DateTimeInterface $create_date): self
  51.     {
  52.         $this->create_date $create_date;
  53.         return $this;
  54.     }
  55.     public function getIsSupport(): ?bool
  56.     {
  57.         return $this->is_support;
  58.     }
  59.     public function setIsSupport(bool $is_support): self
  60.     {
  61.         $this->is_support $is_support;
  62.         return $this;
  63.     }
  64.     public function getMessage(): ?string
  65.     {
  66.         return $this->message;
  67.     }
  68.     public function setMessage(string $message): self
  69.     {
  70.         $this->message $message;
  71.         return $this;
  72.     }
  73.     public function getRating(): ?int
  74.     {
  75.         return $this->rating;
  76.     }
  77.     public function setRating(int $rating): self
  78.     {
  79.         $this->rating $rating;
  80.         return $this;
  81.     }
  82.     public function getTicket(): ?Ticket
  83.     {
  84.         return $this->ticket;
  85.     }
  86.     public function setTicket(?Ticket $ticket): self
  87.     {
  88.         $this->ticket $ticket;
  89.         return $this;
  90.     }
  91.     public function getUser(): ?User
  92.     {
  93.         return $this->user;
  94.     }
  95.     public function setUser(?User $user): self
  96.     {
  97.         $this->user $user;
  98.         return $this;
  99.     }
  100. }