<?php
namespace App\Entity;
use App\Enum\EstadoOperacionEnum;
use DateTime;
use DateTimeInterface;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Exception;
/**
* @ORM\Entity(readOnly=true)
* @ORM\Table(name="operacion_detalle", schema="perseo")
*/
class OperacionDetalle
{
/**
* @ORM\Id
* @ORM\Column(type="string")
*/
private $id;
/**
* @ORM\Column(type="bigint", name="operacion_id")
*/
private $operacion;
/**
* @ORM\Column(type="string", name="tipo")
*/
private $tipo;
/**
* @ORM\Column(type="string", name="IDperseo")
*/
private $IDperseo;
/**
* @ORM\Column(type="datetime", name="fecha")
*/
private $fecha;
/**
* @ORM\Column(type="bigint", name="valoracion_id")
*/
private $valoracionOperacion;
/**
* @ORM\Column(type="string", name="valoracion_IDperseo")
*/
private $valoracionIDperseo;
/**
* @ORM\Column(type="bigint", name="estado_id")
*/
private $estado;
/**
* @ORM\Column(type="string", name="estado_key")
*/
private $estadoKey;
/**
* @ORM\Column(type="string", name="estado_nombre")
*/
private $estadoNombre;
/**
* @ORM\Column(type="datetime", name="estado_fecha")
*/
private $estadoFecha;
/**
* @ORM\Column(type="bigint", name="cliente_id")
*/
private $cliente;
/**
* @ORM\Column(type="string", name="cliente_razon_social")
*/
private $clienteRazonSocial;
/**
* @ORM\Column(type="bigint", name="canal_id")
*/
private $canal;
/**
* @ORM\Column(type="string", name="canal_nombre")
*/
private $canalNombre;
/**
* @ORM\Column(type="bigint", name="usuario_id")
*/
private $usuario;
/**
* @ORM\Column(type="string", name="usuario_IDperseo")
*/
private $usuarioIDperseo;
/**
* @ORM\Column(type="bigint", name="user_id")
*/
private $user;
/**
* @ORM\Column(type="string", name="user_username")
*/
private $userUsername;
/**
* @ORM\Column(type="string", name="user_email")
*/
private $userEmail;
/**
* @ORM\Column(type="string", name="user_nombre")
*/
private $userNombre;
/**
* @ORM\Column(type="string", name="user_primer_apellido")
*/
private $userPrimerApellido;
/**
* @ORM\Column(type="string", name="user_segundo_apellido")
*/
private $userSegundoApellido;
/**
* @ORM\Column(type="string", name="fecha_tramitacion")
*/
private $fechaTramitacion;
/**
* @ORM\Column(type="string", name="fecha_tramitada")
*/
private $fechaTramitada;
/**
* @ORM\Column(type="string", name="fecha_confirmada")
*/
private $fechaConfirmada;
/**
* @ORM\Column(type="string", name="fecha_cancelada")
*/
private $fechaCancelada;
/**
* @ORM\Column(type="string", name="fecha_asentada")
*/
private $fechaAsentada;
/**
* @ORM\Column(type="string", name="fecha_finalizada")
*/
private $fechaFinalizada;
/**
* @ORM\Column(type="bigint", name="detalle_id")
*/
private $detalle;
/**
* @ORM\Column(type="bigint", name="detalle_reloj_id")
*/
private $detalleReloj;
/**
* @ORM\Column(type="string", name="detalle_reloj_IDperseo")
*/
private $detalleRelojIDperseo;
/**
* @ORM\Column(type="string", name="detalle_reloj_codigo")
*/
private $detalleRelojCodigo;
/**
* @ORM\Column(type="bigint", name="detalle_reloj_marca_id")
*/
private $detalleRelojMarca;
/**
* @ORM\Column(type="string", name="detalle_reloj_marca_nombre")
*/
private $detalleRelojMarcaNombre;
/**
* @ORM\Column(type="string", name="detalle_reloj_modelo1")
*/
private $detalleRelojModelo1;
/**
* @ORM\Column(type="string", name="detalle_reloj_ref1")
*/
private $detalleRelojRef1;
/**
* @ORM\Column(type="float", precision=2, name="detalle_precio_coste")
*/
private $detallePrecioCoste;
/**
* @ORM\Column(type="float", precision=2, name="detalle_precio_venta")
*/
private $detallePrecioVenta;
/**
* @ORM\Column(type="datetime", nullable=true, name="deleted_at")
*/
protected $deletedAt;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
* @return OperacionDetalle
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* @return mixed
*/
public function getOperacion()
{
return $this->operacion;
}
/**
* @param mixed $operacion
* @return OperacionDetalle
*/
public function setOperacion($operacion)
{
$this->operacion = $operacion;
return $this;
}
/**
* @return mixed
*/
public function getTipo()
{
return $this->tipo;
}
/**
* @param mixed $tipo
* @return OperacionDetalle
*/
public function setTipo($tipo)
{
$this->tipo = $tipo;
return $this;
}
/**
* @return mixed
*/
public function getIDperseo()
{
return $this->IDperseo;
}
/**
* @param mixed $IDperseo
* @return OperacionDetalle
*/
public function setIDperseo($IDperseo)
{
$this->IDperseo = $IDperseo;
return $this;
}
/**
* @return mixed
*/
public function getValoracionOperacion()
{
return $this->valoracionOperacion;
}
/**
* @param mixed $valoracionOperacion
* @return OperacionDetalle
*/
public function setValoracionOperacion($valoracionOperacion)
{
$this->valoracionOperacion = $valoracionOperacion;
return $this;
}
/**
* @return mixed
*/
public function getValoracionIDperseo()
{
return $this->valoracionIDperseo;
}
/**
* @param mixed $valoracionIDperseo
* @return OperacionDetalle
*/
public function setValoracionIDperseo($valoracionIDperseo)
{
$this->valoracionIDperseo = $valoracionIDperseo;
return $this;
}
/**
* @return mixed
*/
public function getEstado()
{
return $this->estado;
}
/**
* @param mixed $estado
* @return OperacionDetalle
*/
public function setEstado($estado)
{
$this->estado = $estado;
return $this;
}
/**
* @return mixed
*/
public function getEstadoKey()
{
return $this->estadoKey;
}
/**
* @param mixed $estadoKey
* @return OperacionDetalle
*/
public function setEstadoKey($estadoKey)
{
$this->estadoKey = $estadoKey;
return $this;
}
/**
* @return mixed
*/
public function getEstadoNombre()
{
return $this->estadoNombre;
}
/**
* @param mixed $estadoNombre
* @return OperacionDetalle
*/
public function setEstadoNombre($estadoNombre)
{
$this->estadoNombre = $estadoNombre;
return $this;
}
/**
* @return mixed
*/
public function getEstadoFecha()
{
return $this->estadoFecha;
}
/**
* @param mixed $estadoFecha
* @return OperacionDetalle
*/
public function setEstadoFecha($estadoFecha)
{
$this->estadoFecha = $estadoFecha;
return $this;
}
/**
* @return mixed
*/
public function getCliente()
{
return $this->cliente;
}
/**
* @param mixed $cliente
* @return OperacionDetalle
*/
public function setCliente($cliente)
{
$this->cliente = $cliente;
return $this;
}
/**
* @return mixed
*/
public function getClienteRazonSocial()
{
return $this->clienteRazonSocial;
}
/**
* @param mixed $clienteRazonSocial
* @return OperacionDetalle
*/
public function setClienteRazonSocial($clienteRazonSocial)
{
$this->clienteRazonSocial = $clienteRazonSocial;
return $this;
}
/**
* @return mixed
*/
public function getCanal()
{
return $this->canal;
}
/**
* @param mixed $canal
* @return OperacionDetalle
*/
public function setCanal($canal)
{
$this->canal = $canal;
return $this;
}
/**
* @return mixed
*/
public function getCanalNombre()
{
return $this->canalNombre;
}
/**
* @param mixed $canalNombre
* @return OperacionDetalle
*/
public function setCanalNombre($canalNombre)
{
$this->canalNombre = $canalNombre;
return $this;
}
/**
* @return mixed
*/
public function getUsuario()
{
return $this->usuario;
}
/**
* @param mixed $usuario
* @return OperacionDetalle
*/
public function setUsuario($usuario)
{
$this->usuario = $usuario;
return $this;
}
/**
* @return mixed
*/
public function getUsuarioIDperseo()
{
return $this->usuarioIDperseo;
}
/**
* @param mixed $usuarioIDperseo
* @return OperacionDetalle
*/
public function setUsuarioIDperseo($usuarioIDperseo)
{
$this->usuarioIDperseo = $usuarioIDperseo;
return $this;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
* @return OperacionDetalle
*/
public function setUser($user)
{
$this->user = $user;
return $this;
}
/**
* @return mixed
*/
public function getUserUsername()
{
return $this->userUsername;
}
/**
* @param mixed $userUsername
* @return OperacionDetalle
*/
public function setUserUsername($userUsername)
{
$this->userUsername = $userUsername;
return $this;
}
/**
* @return mixed
*/
public function getUserEmail()
{
return $this->userEmail;
}
/**
* @param mixed $userEmail
* @return OperacionDetalle
*/
public function setUserEmail($userEmail)
{
$this->userEmail = $userEmail;
return $this;
}
/**
* @return mixed
*/
public function getUserNombre()
{
return $this->userNombre;
}
/**
* @param mixed $userNombre
* @return OperacionDetalle
*/
public function setUserNombre($userNombre)
{
$this->userNombre = $userNombre;
return $this;
}
/**
* @return mixed
*/
public function getUserPrimerApellido()
{
return $this->userPrimerApellido;
}
/**
* @param mixed $userPrimerApellido
* @return OperacionDetalle
*/
public function setUserPrimerApellido($userPrimerApellido)
{
$this->userPrimerApellido = $userPrimerApellido;
return $this;
}
/**
* @return mixed
*/
public function getUserSegundoApellido()
{
return $this->userSegundoApellido;
}
/**
* @param mixed $userSegundoApellido
* @return OperacionDetalle
*/
public function setUserSegundoApellido($userSegundoApellido)
{
$this->userSegundoApellido = $userSegundoApellido;
return $this;
}
/**
* @return mixed
*/
public function getFechaTramitacion()
{
return $this->fechaTramitacion;
}
/**
* @param mixed $fechaTramitacion
* @return OperacionDetalle
*/
public function setFechaTramitacion($fechaTramitacion)
{
$this->fechaTramitacion = $fechaTramitacion;
return $this;
}
/**
* @return mixed
*/
public function getFechaTramitada()
{
return $this->fechaTramitada;
}
/**
* @param mixed $fechaTramitada
* @return OperacionDetalle
*/
public function setFechaTramitada($fechaTramitada)
{
$this->fechaTramitada = $fechaTramitada;
return $this;
}
/**
* @return mixed
*/
public function getFechaConfirmada()
{
return $this->fechaConfirmada;
}
/**
* @param mixed $fechaConfirmada
* @return OperacionDetalle
*/
public function setFechaConfirmada($fechaConfirmada)
{
$this->fechaConfirmada = $fechaConfirmada;
return $this;
}
/**
* @return mixed
*/
public function getFechaCancelada()
{
return $this->fechaCancelada;
}
/**
* @param mixed $fechaCancelada
* @return OperacionDetalle
*/
public function setFechaCancelada($fechaCancelada)
{
$this->fechaCancelada = $fechaCancelada;
return $this;
}
/**
* @return mixed
*/
public function getFechaAsentada()
{
return $this->fechaAsentada;
}
/**
* @param mixed $fechaAsentada
* @return OperacionDetalle
*/
public function setFechaAsentada($fechaAsentada)
{
$this->fechaAsentada = $fechaAsentada;
return $this;
}
/**
* @return mixed
*/
public function getFechaFinalizada()
{
return $this->fechaFinalizada;
}
/**
* @param mixed $fechaFinalizada
* @return OperacionDetalle
*/
public function setFechaFinalizada($fechaFinalizada)
{
$this->fechaFinalizada = $fechaFinalizada;
return $this;
}
/**
* @return mixed
*/
public function getDetalle()
{
return $this->detalle;
}
/**
* @param mixed $detalle
* @return OperacionDetalle
*/
public function setDetalle($detalle)
{
$this->detalle = $detalle;
return $this;
}
/**
* @return mixed
*/
public function getDetalleReloj()
{
return $this->detalleReloj;
}
/**
* @param mixed $detalleReloj
* @return OperacionDetalle
*/
public function setDetalleReloj($detalleReloj)
{
$this->detalleReloj = $detalleReloj;
return $this;
}
/**
* @return mixed
*/
public function getDetalleRelojIDperseo()
{
return $this->detalleRelojIDperseo;
}
public function getDetalleRelojCodigo()
{
return $this->detalleRelojCodigo;
}
/**
* @param mixed $detalleRelojIDperseo
* @return OperacionDetalle
*/
public function setDetalleRelojIDperseo($detalleRelojIDperseo)
{
$this->detalleRelojIDperseo = $detalleRelojIDperseo;
return $this;
}
/**
* @return mixed
*/
public function getDetalleRelojMarca()
{
return $this->detalleRelojMarca;
}
/**
* @param mixed $detalleRelojMarca
* @return OperacionDetalle
*/
public function setDetalleRelojMarca($detalleRelojMarca)
{
$this->detalleRelojMarca = $detalleRelojMarca;
return $this;
}
/**
* @return mixed
*/
public function getDetalleRelojMarcaNombre()
{
return $this->detalleRelojMarcaNombre;
}
/**
* @param mixed $detalleRelojMarcaNombre
* @return OperacionDetalle
*/
public function setDetalleRelojMarcaNombre($detalleRelojMarcaNombre)
{
$this->detalleRelojMarcaNombre = $detalleRelojMarcaNombre;
return $this;
}
/**
* @return mixed
*/
public function getDetalleRelojModelo1()
{
return $this->detalleRelojModelo1;
}
/**
* @param mixed $detalleRelojModelo1
* @return OperacionDetalle
*/
public function setDetalleRelojModelo1($detalleRelojModelo1)
{
$this->detalleRelojModelo1 = $detalleRelojModelo1;
return $this;
}
/**
* @return mixed
*/
public function getDetalleRelojRef1()
{
return $this->detalleRelojRef1;
}
/**
* @param mixed $detalleRelojRef1
* @return OperacionDetalle
*/
public function setDetalleRelojRef1($detalleRelojRef1)
{
$this->detalleRelojRef1 = $detalleRelojRef1;
return $this;
}
/**
* @return mixed
*/
public function getDetallePrecioCoste()
{
return $this->detallePrecioCoste;
}
/**
* @param mixed $detallePrecioCoste
* @return OperacionDetalle
*/
public function setDetallePrecioCoste($detallePrecioCoste)
{
$this->detallePrecioCoste = $detallePrecioCoste;
return $this;
}
/**
* @return mixed
*/
public function getDetallePrecioVenta()
{
return $this->detallePrecioVenta;
}
/**
* @param mixed $detallePrecioVenta
* @return OperacionDetalle
*/
public function setDetallePrecioVenta($detallePrecioVenta)
{
$this->detallePrecioVenta = $detallePrecioVenta;
return $this;
}
/*
* @return DateTime
* @throws Exception
*/
/*public function getEstadoFecha(): DateTime
{
switch($this->getEstadoKey())
{
case EstadoOperacionEnum::ESTADO_EN_TRAMITACION:
$fecha = $this->getFechaTramitacion();
break;
case EstadoOperacionEnum::ESTADO_TRAMITADA:
$fecha = $this->getFechaTramitada();
break;
case EstadoOperacionEnum::ESTADO_CONFIRMADA:
$fecha = $this->getFechaConfirmada();
break;
default:
$fecha = null;
break;
}
return new DateTime($fecha);
}*/
public function getFecha(): ?\DateTimeInterface
{
return $this->fecha;
}
public function setFecha(\DateTimeInterface $fecha): static
{
$this->fecha = $fecha;
return $this;
}
public function getDeletedAt(): ?DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?DateTimeInterface $deletedAt): self
{
$this->deletedAt = $deletedAt;
return $this;
}
}