<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\TicketReplyRepository")
* @ORM\Table(name="ticket_replies", indexes={@ORM\Index(name="id_index", columns={"id"})})
*/
class TicketReply
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="datetime", nullable=false)
*/
private $create_date;
/**
* @ORM\Column(type="boolean", nullable=false)
*/
private $is_support;
/**
* @ORM\Column(type="text", nullable=false)
*/
private $message;
/**
* @ORM\Column(type="integer", nullable=false)
*/
private $rating;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Ticket", inversedBy="ticketReplies")
* @ORM\JoinColumn(name="ticket_id", referencedColumnName="id", nullable=false)
*/
private $ticket;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="ticketReplies")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false)
*/
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getCreateDate(): ?\DateTimeInterface
{
return $this->create_date;
}
public function setCreateDate(\DateTimeInterface $create_date): self
{
$this->create_date = $create_date;
return $this;
}
public function getIsSupport(): ?bool
{
return $this->is_support;
}
public function setIsSupport(bool $is_support): self
{
$this->is_support = $is_support;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage(string $message): self
{
$this->message = $message;
return $this;
}
public function getRating(): ?int
{
return $this->rating;
}
public function setRating(int $rating): self
{
$this->rating = $rating;
return $this;
}
public function getTicket(): ?Ticket
{
return $this->ticket;
}
public function setTicket(?Ticket $ticket): self
{
$this->ticket = $ticket;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}