src/Entity/Ticket.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TicketRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TicketRepository::class)
  7.  */
  8. class Ticket
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $Nom;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $Mail;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $sujet;
  28.     /**
  29.      * @ORM\Column(type="text")
  30.      */
  31.     private $Commentaire;
  32.     /**
  33.      * @ORM\Column(type="boolean", nullable=true)
  34.      */
  35.     private $Traiter;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="tickets")
  38.      */
  39.     private $IDModo;
  40.     /**
  41.      * @ORM\Column(type="text", nullable=true)
  42.      */
  43.     private $Response;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getNom(): ?string
  49.     {
  50.         return $this->Nom;
  51.     }
  52.     public function setNom(string $Nom): self
  53.     {
  54.         $this->Nom $Nom;
  55.         return $this;
  56.     }
  57.     public function getMail(): ?string
  58.     {
  59.         return $this->Mail;
  60.     }
  61.     public function setMail(string $Mail): self
  62.     {
  63.         $this->Mail $Mail;
  64.         return $this;
  65.     }
  66.     public function getSujet(): ?string
  67.     {
  68.         return $this->sujet;
  69.     }
  70.     public function setSujet(string $sujet): self
  71.     {
  72.         $this->sujet $sujet;
  73.         return $this;
  74.     }
  75.     public function getCommentaire(): ?string
  76.     {
  77.         return $this->Commentaire;
  78.     }
  79.     public function setCommentaire(string $Commentaire): self
  80.     {
  81.         $this->Commentaire $Commentaire;
  82.         return $this;
  83.     }
  84.     public function getTraiter(): ?bool
  85.     {
  86.         return $this->Traiter;
  87.     }
  88.     public function setTraiter(?bool $Traiter): self
  89.     {
  90.         $this->Traiter $Traiter;
  91.         return $this;
  92.     }
  93.     public function getIDModo(): ?user
  94.     {
  95.         return $this->IDModo;
  96.     }
  97.     public function setIDModo(?user $IDModo): self
  98.     {
  99.         $this->IDModo $IDModo;
  100.         return $this;
  101.     }
  102.     public function getResponse(): ?string
  103.     {
  104.         return $this->Response;
  105.     }
  106.     public function setResponse(?string $Response): self
  107.     {
  108.         $this->Response $Response;
  109.         return $this;
  110.     }
  111.     public function to_arraytabtick(): Array
  112.     {            
  113.         $tmp = [
  114.             'id' => $this->id,
  115.             'nom' => $this->Nom,
  116.             'mail' => $this->Mail,
  117.             'sujet' => $this->sujet,
  118.             'traiter' => $this->Traiter,
  119.         ];
  120.         return $tmp;
  121.     }
  122. }