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=20)
  18. */
  19. private $numero;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=Cliente::class, inversedBy="tickets")
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $Cliente;
  25. /**
  26. * @ORM\Column(type="datetime_immutable", nullable=true)
  27. */
  28. private $createdAt;
  29. /**
  30. * @ORM\Column(type="datetime", nullable=true)
  31. */
  32. private $vencimientoRespuesta;
  33. /**
  34. * @ORM\Column(type="datetime", nullable=true)
  35. */
  36. private $tiempoRespuesta;
  37. /**
  38. * @ORM\Column(type="datetime", nullable=true)
  39. */
  40. private $vencimientoTemporal;
  41. /**
  42. * @ORM\Column(type="datetime", nullable=true)
  43. */
  44. private $fechaTemporal;
  45. /**
  46. * @ORM\Column(type="datetime", nullable=true)
  47. */
  48. private $vencimientoDefinitiva;
  49. /**
  50. * @ORM\Column(type="datetime", nullable=true)
  51. */
  52. private $fechaDefinitiva;
  53. /**
  54. * @ORM\ManyToOne(targetEntity=Usuario::class, inversedBy="tickets")
  55. */
  56. private $createdBy;
  57. /**
  58. * @ORM\Column(type="datetime_immutable")
  59. */
  60. private $createdAtUsuario;
  61. /**
  62. * @ORM\Column(type="datetime", nullable=true)
  63. */
  64. private $updatedAt;
  65. /**
  66. * @ORM\ManyToOne(targetEntity=Usuario::class)
  67. */
  68. private $updatedBy;
  69. /**
  70. * @ORM\Column(type="bigint", nullable=true)
  71. */
  72. private $tiempoSoporte;
  73. public function getId(): ?int
  74. {
  75. return $this->id;
  76. }
  77. public function getNumero(): ?string
  78. {
  79. return $this->numero;
  80. }
  81. public function setNumero(string $numero): self
  82. {
  83. $this->numero = $numero;
  84. return $this;
  85. }
  86. public function getCliente(): ?Cliente
  87. {
  88. return $this->Cliente;
  89. }
  90. public function setCliente(?Cliente $Cliente): self
  91. {
  92. $this->Cliente = $Cliente;
  93. return $this;
  94. }
  95. public function getCreatedAt(): ?\DateTimeImmutable
  96. {
  97. return $this->createdAt;
  98. }
  99. public function setCreatedAt(?\DateTimeImmutable $createdAt): self
  100. {
  101. $this->createdAt = $createdAt;
  102. return $this;
  103. }
  104. public function getVencimientoRespuesta(): ?\DateTimeInterface
  105. {
  106. return $this->vencimientoRespuesta;
  107. }
  108. public function setVencimientoRespuesta(?\DateTimeInterface $vencimientoRespuesta): self
  109. {
  110. $this->vencimientoRespuesta = $vencimientoRespuesta;
  111. return $this;
  112. }
  113. public function getTiempoRespuesta(): ?\DateTimeInterface
  114. {
  115. return $this->tiempoRespuesta;
  116. }
  117. public function setTiempoRespuesta(?\DateTimeInterface $tiempoRespuesta): self
  118. {
  119. $this->tiempoRespuesta = $tiempoRespuesta;
  120. return $this;
  121. }
  122. public function getVencimientoTemporal(): ?\DateTimeInterface
  123. {
  124. return $this->vencimientoTemporal;
  125. }
  126. public function setVencimientoTemporal(?\DateTimeInterface $vencimientoTemporal): self
  127. {
  128. $this->vencimientoTemporal = $vencimientoTemporal;
  129. return $this;
  130. }
  131. public function getFechaTemporal(): ?\DateTimeInterface
  132. {
  133. return $this->fechaTemporal;
  134. }
  135. public function setFechaTemporal(?\DateTimeInterface $fechaTemporal): self
  136. {
  137. $this->fechaTemporal = $fechaTemporal;
  138. return $this;
  139. }
  140. public function getVencimientoDefinitiva(): ?\DateTimeInterface
  141. {
  142. return $this->vencimientoDefinitiva;
  143. }
  144. public function setVencimientoDefinitiva(?\DateTimeInterface $vencimientoDefinitiva): self
  145. {
  146. $this->vencimientoDefinitiva = $vencimientoDefinitiva;
  147. return $this;
  148. }
  149. public function getFechaDefinitiva(): ?\DateTimeInterface
  150. {
  151. return $this->fechaDefinitiva;
  152. }
  153. public function setFechaDefinitiva(?\DateTimeInterface $fechaDefinitiva): self
  154. {
  155. $this->fechaDefinitiva = $fechaDefinitiva;
  156. return $this;
  157. }
  158. public function getCreatedBy(): ?Usuario
  159. {
  160. return $this->createdBy;
  161. }
  162. public function setCreatedBy(?Usuario $createdBy): self
  163. {
  164. $this->createdBy = $createdBy;
  165. return $this;
  166. }
  167. public function getCreatedAtUsuario(): ?\DateTimeImmutable
  168. {
  169. return $this->createdAtUsuario;
  170. }
  171. public function setCreatedAtUsuario(\DateTimeImmutable $createdAtUsuario): self
  172. {
  173. $this->createdAtUsuario = $createdAtUsuario;
  174. return $this;
  175. }
  176. public function getUpdatedAt(): ?\DateTimeInterface
  177. {
  178. return $this->updatedAt;
  179. }
  180. public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  181. {
  182. $this->updatedAt = $updatedAt;
  183. return $this;
  184. }
  185. public function getUpdatedBy(): ?Usuario
  186. {
  187. return $this->updatedBy;
  188. }
  189. public function setUpdatedBy(?Usuario $updatedBy): self
  190. {
  191. $this->updatedBy = $updatedBy;
  192. return $this;
  193. }
  194. public function getTiempoSoporte(): ?string
  195. {
  196. return $this->tiempoSoporte;
  197. }
  198. public function setTiempoSoporte(?string $tiempoSoporte): self
  199. {
  200. $this->tiempoSoporte = $tiempoSoporte;
  201. return $this;
  202. }
  203. }