<?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=20)
*/
private $numero;
/**
* @ORM\ManyToOne(targetEntity=Cliente::class, inversedBy="tickets")
* @ORM\JoinColumn(nullable=false)
*/
private $Cliente;
/**
* @ORM\Column(type="datetime_immutable", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $vencimientoRespuesta;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $tiempoRespuesta;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $vencimientoTemporal;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $fechaTemporal;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $vencimientoDefinitiva;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $fechaDefinitiva;
/**
* @ORM\ManyToOne(targetEntity=Usuario::class, inversedBy="tickets")
*/
private $createdBy;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $createdAtUsuario;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\ManyToOne(targetEntity=Usuario::class)
*/
private $updatedBy;
/**
* @ORM\Column(type="bigint", nullable=true)
*/
private $tiempoSoporte;
public function getId(): ?int
{
return $this->id;
}
public function getNumero(): ?string
{
return $this->numero;
}
public function setNumero(string $numero): self
{
$this->numero = $numero;
return $this;
}
public function getCliente(): ?Cliente
{
return $this->Cliente;
}
public function setCliente(?Cliente $Cliente): self
{
$this->Cliente = $Cliente;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getVencimientoRespuesta(): ?\DateTimeInterface
{
return $this->vencimientoRespuesta;
}
public function setVencimientoRespuesta(?\DateTimeInterface $vencimientoRespuesta): self
{
$this->vencimientoRespuesta = $vencimientoRespuesta;
return $this;
}
public function getTiempoRespuesta(): ?\DateTimeInterface
{
return $this->tiempoRespuesta;
}
public function setTiempoRespuesta(?\DateTimeInterface $tiempoRespuesta): self
{
$this->tiempoRespuesta = $tiempoRespuesta;
return $this;
}
public function getVencimientoTemporal(): ?\DateTimeInterface
{
return $this->vencimientoTemporal;
}
public function setVencimientoTemporal(?\DateTimeInterface $vencimientoTemporal): self
{
$this->vencimientoTemporal = $vencimientoTemporal;
return $this;
}
public function getFechaTemporal(): ?\DateTimeInterface
{
return $this->fechaTemporal;
}
public function setFechaTemporal(?\DateTimeInterface $fechaTemporal): self
{
$this->fechaTemporal = $fechaTemporal;
return $this;
}
public function getVencimientoDefinitiva(): ?\DateTimeInterface
{
return $this->vencimientoDefinitiva;
}
public function setVencimientoDefinitiva(?\DateTimeInterface $vencimientoDefinitiva): self
{
$this->vencimientoDefinitiva = $vencimientoDefinitiva;
return $this;
}
public function getFechaDefinitiva(): ?\DateTimeInterface
{
return $this->fechaDefinitiva;
}
public function setFechaDefinitiva(?\DateTimeInterface $fechaDefinitiva): self
{
$this->fechaDefinitiva = $fechaDefinitiva;
return $this;
}
public function getCreatedBy(): ?Usuario
{
return $this->createdBy;
}
public function setCreatedBy(?Usuario $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getCreatedAtUsuario(): ?\DateTimeImmutable
{
return $this->createdAtUsuario;
}
public function setCreatedAtUsuario(\DateTimeImmutable $createdAtUsuario): self
{
$this->createdAtUsuario = $createdAtUsuario;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getUpdatedBy(): ?Usuario
{
return $this->updatedBy;
}
public function setUpdatedBy(?Usuario $updatedBy): self
{
$this->updatedBy = $updatedBy;
return $this;
}
public function getTiempoSoporte(): ?string
{
return $this->tiempoSoporte;
}
public function setTiempoSoporte(?string $tiempoSoporte): self
{
$this->tiempoSoporte = $tiempoSoporte;
return $this;
}
}