<?php
namespace App\Entity;
use App\Repository\TicketRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TicketRepository::class)
*/
class Ticket
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $Nom;
/**
* @ORM\Column(type="string", length=255)
*/
private $Mail;
/**
* @ORM\Column(type="string", length=255)
*/
private $sujet;
/**
* @ORM\Column(type="text")
*/
private $Commentaire;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $Traiter;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="tickets")
*/
private $IDModo;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $Response;
public function getId(): ?int
{
return $this->id;
}
public function getNom(): ?string
{
return $this->Nom;
}
public function setNom(string $Nom): self
{
$this->Nom = $Nom;
return $this;
}
public function getMail(): ?string
{
return $this->Mail;
}
public function setMail(string $Mail): self
{
$this->Mail = $Mail;
return $this;
}
public function getSujet(): ?string
{
return $this->sujet;
}
public function setSujet(string $sujet): self
{
$this->sujet = $sujet;
return $this;
}
public function getCommentaire(): ?string
{
return $this->Commentaire;
}
public function setCommentaire(string $Commentaire): self
{
$this->Commentaire = $Commentaire;
return $this;
}
public function getTraiter(): ?bool
{
return $this->Traiter;
}
public function setTraiter(?bool $Traiter): self
{
$this->Traiter = $Traiter;
return $this;
}
public function getIDModo(): ?user
{
return $this->IDModo;
}
public function setIDModo(?user $IDModo): self
{
$this->IDModo = $IDModo;
return $this;
}
public function getResponse(): ?string
{
return $this->Response;
}
public function setResponse(?string $Response): self
{
$this->Response = $Response;
return $this;
}
public function to_arraytabtick(): Array
{
$tmp = [
'id' => $this->id,
'nom' => $this->Nom,
'mail' => $this->Mail,
'sujet' => $this->sujet,
'traiter' => $this->Traiter,
];
return $tmp;
}
}