src/Entity/OperacionDetalle.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Enum\EstadoOperacionEnum;
  4. use DateTime;
  5. use DateTimeInterface;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Exception;
  9. /**
  10.  * @ORM\Entity(readOnly=true)
  11.  * @ORM\Table(name="operacion_detalle", schema="perseo")
  12.  */
  13. class OperacionDetalle
  14. {
  15.     /**
  16.      * @ORM\Id
  17.      * @ORM\Column(type="string")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="bigint", name="operacion_id")
  22.      */
  23.     private $operacion;
  24.     /**
  25.      * @ORM\Column(type="string", name="tipo")
  26.      */
  27.     private $tipo;
  28.     /**
  29.      * @ORM\Column(type="string", name="IDperseo")
  30.      */
  31.     private $IDperseo;
  32.     /**
  33.      * @ORM\Column(type="datetime", name="fecha")
  34.      */
  35.     private $fecha;
  36.     /**
  37.      * @ORM\Column(type="bigint", name="valoracion_id")
  38.      */
  39.     private $valoracionOperacion;
  40.     /**
  41.      * @ORM\Column(type="string", name="valoracion_IDperseo")
  42.      */
  43.     private $valoracionIDperseo;
  44.     /**
  45.      * @ORM\Column(type="bigint", name="estado_id")
  46.      */
  47.     private $estado;
  48.     /**
  49.      * @ORM\Column(type="string", name="estado_key")
  50.      */
  51.     private $estadoKey;
  52.     /**
  53.      * @ORM\Column(type="string", name="estado_nombre")
  54.      */
  55.     private $estadoNombre;
  56.     /**
  57.      * @ORM\Column(type="datetime", name="estado_fecha")
  58.      */
  59.     private $estadoFecha;
  60.     /**
  61.      * @ORM\Column(type="bigint", name="cliente_id")
  62.      */
  63.     private $cliente;
  64.     /**
  65.      * @ORM\Column(type="string", name="cliente_razon_social")
  66.      */
  67.     private $clienteRazonSocial;
  68.     /**
  69.      * @ORM\Column(type="bigint", name="canal_id")
  70.      */
  71.     private $canal;
  72.     /**
  73.      * @ORM\Column(type="string", name="canal_nombre")
  74.      */
  75.     private $canalNombre;
  76.     /**
  77.      * @ORM\Column(type="bigint", name="usuario_id")
  78.      */
  79.     private $usuario;
  80.     /**
  81.      * @ORM\Column(type="string", name="usuario_IDperseo")
  82.      */
  83.     private $usuarioIDperseo;
  84.     /**
  85.      * @ORM\Column(type="bigint", name="user_id")
  86.      */
  87.     private $user;
  88.     /**
  89.      * @ORM\Column(type="string", name="user_username")
  90.      */
  91.     private $userUsername;
  92.     /**
  93.      * @ORM\Column(type="string", name="user_email")
  94.      */
  95.     private $userEmail;
  96.     /**
  97.      * @ORM\Column(type="string", name="user_nombre")
  98.      */
  99.     private $userNombre;
  100.     /**
  101.      * @ORM\Column(type="string", name="user_primer_apellido")
  102.      */
  103.     private $userPrimerApellido;
  104.     /**
  105.      * @ORM\Column(type="string", name="user_segundo_apellido")
  106.      */
  107.     private $userSegundoApellido;
  108.     /**
  109.      * @ORM\Column(type="string", name="fecha_tramitacion")
  110.      */
  111.     private $fechaTramitacion;
  112.     /**
  113.      * @ORM\Column(type="string", name="fecha_tramitada")
  114.      */
  115.     private $fechaTramitada;
  116.     /**
  117.      * @ORM\Column(type="string", name="fecha_confirmada")
  118.      */
  119.     private $fechaConfirmada;
  120.     /**
  121.      * @ORM\Column(type="string", name="fecha_cancelada")
  122.      */
  123.     private $fechaCancelada;
  124.     /**
  125.      * @ORM\Column(type="string", name="fecha_asentada")
  126.      */
  127.     private $fechaAsentada;
  128.     /**
  129.      * @ORM\Column(type="string", name="fecha_finalizada")
  130.      */
  131.     private $fechaFinalizada;
  132.     /**
  133.      * @ORM\Column(type="bigint", name="detalle_id")
  134.      */
  135.     private $detalle;
  136.     /**
  137.      * @ORM\Column(type="bigint", name="detalle_reloj_id")
  138.      */
  139.     private $detalleReloj;
  140.     /**
  141.      * @ORM\Column(type="string", name="detalle_reloj_IDperseo")
  142.      */
  143.     private $detalleRelojIDperseo;
  144.     /**
  145.      * @ORM\Column(type="string", name="detalle_reloj_codigo")
  146.      */
  147.     private $detalleRelojCodigo;
  148.     /**
  149.      * @ORM\Column(type="bigint", name="detalle_reloj_marca_id")
  150.      */
  151.     private $detalleRelojMarca;
  152.     /**
  153.      * @ORM\Column(type="string", name="detalle_reloj_marca_nombre")
  154.      */
  155.     private $detalleRelojMarcaNombre;
  156.     /**
  157.      * @ORM\Column(type="string", name="detalle_reloj_modelo1")
  158.      */
  159.     private $detalleRelojModelo1;
  160.     /**
  161.      * @ORM\Column(type="string", name="detalle_reloj_ref1")
  162.      */
  163.     private $detalleRelojRef1;
  164.     /**
  165.      * @ORM\Column(type="float", precision=2, name="detalle_precio_coste")
  166.      */
  167.     private $detallePrecioCoste;
  168.     /**
  169.      * @ORM\Column(type="float", precision=2, name="detalle_precio_venta")
  170.      */
  171.     private $detallePrecioVenta;
  172.     /**
  173.      * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  174.      */
  175.     protected $deletedAt;
  176.     /**
  177.      * @return mixed
  178.      */
  179.     public function getId()
  180.     {
  181.         return $this->id;
  182.     }
  183.     /**
  184.      * @param mixed $id
  185.      * @return OperacionDetalle
  186.      */
  187.     public function setId($id)
  188.     {
  189.         $this->id $id;
  190.         return $this;
  191.     }
  192.     /**
  193.      * @return mixed
  194.      */
  195.     public function getOperacion()
  196.     {
  197.         return $this->operacion;
  198.     }
  199.     /**
  200.      * @param mixed $operacion
  201.      * @return OperacionDetalle
  202.      */
  203.     public function setOperacion($operacion)
  204.     {
  205.         $this->operacion $operacion;
  206.         return $this;
  207.     }
  208.     /**
  209.      * @return mixed
  210.      */
  211.     public function getTipo()
  212.     {
  213.         return $this->tipo;
  214.     }
  215.     /**
  216.      * @param mixed $tipo
  217.      * @return OperacionDetalle
  218.      */
  219.     public function setTipo($tipo)
  220.     {
  221.         $this->tipo $tipo;
  222.         return $this;
  223.     }
  224.     /**
  225.      * @return mixed
  226.      */
  227.     public function getIDperseo()
  228.     {
  229.         return $this->IDperseo;
  230.     }
  231.     /**
  232.      * @param mixed $IDperseo
  233.      * @return OperacionDetalle
  234.      */
  235.     public function setIDperseo($IDperseo)
  236.     {
  237.         $this->IDperseo $IDperseo;
  238.         return $this;
  239.     }
  240.     /**
  241.      * @return mixed
  242.      */
  243.     public function getValoracionOperacion()
  244.     {
  245.         return $this->valoracionOperacion;
  246.     }
  247.     /**
  248.      * @param mixed $valoracionOperacion
  249.      * @return OperacionDetalle
  250.      */
  251.     public function setValoracionOperacion($valoracionOperacion)
  252.     {
  253.         $this->valoracionOperacion $valoracionOperacion;
  254.         return $this;
  255.     }
  256.     /**
  257.      * @return mixed
  258.      */
  259.     public function getValoracionIDperseo()
  260.     {
  261.         return $this->valoracionIDperseo;
  262.     }
  263.     /**
  264.      * @param mixed $valoracionIDperseo
  265.      * @return OperacionDetalle
  266.      */
  267.     public function setValoracionIDperseo($valoracionIDperseo)
  268.     {
  269.         $this->valoracionIDperseo $valoracionIDperseo;
  270.         return $this;
  271.     }
  272.     /**
  273.      * @return mixed
  274.      */
  275.     public function getEstado()
  276.     {
  277.         return $this->estado;
  278.     }
  279.     /**
  280.      * @param mixed $estado
  281.      * @return OperacionDetalle
  282.      */
  283.     public function setEstado($estado)
  284.     {
  285.         $this->estado $estado;
  286.         return $this;
  287.     }
  288.     /**
  289.      * @return mixed
  290.      */
  291.     public function getEstadoKey()
  292.     {
  293.         return $this->estadoKey;
  294.     }
  295.     /**
  296.      * @param mixed $estadoKey
  297.      * @return OperacionDetalle
  298.      */
  299.     public function setEstadoKey($estadoKey)
  300.     {
  301.         $this->estadoKey $estadoKey;
  302.         return $this;
  303.     }
  304.     /**
  305.      * @return mixed
  306.      */
  307.     public function getEstadoNombre()
  308.     {
  309.         return $this->estadoNombre;
  310.     }
  311.     /**
  312.      * @param mixed $estadoNombre
  313.      * @return OperacionDetalle
  314.      */
  315.     public function setEstadoNombre($estadoNombre)
  316.     {
  317.         $this->estadoNombre $estadoNombre;
  318.         return $this;
  319.     }
  320.     /**
  321.      * @return mixed
  322.      */
  323.     public function getEstadoFecha()
  324.     {
  325.         return $this->estadoFecha;
  326.     }
  327.     /**
  328.      * @param mixed $estadoFecha
  329.      * @return OperacionDetalle
  330.      */
  331.     public function setEstadoFecha($estadoFecha)
  332.     {
  333.         $this->estadoFecha $estadoFecha;
  334.         return $this;
  335.     }
  336.     /**
  337.      * @return mixed
  338.      */
  339.     public function getCliente()
  340.     {
  341.         return $this->cliente;
  342.     }
  343.     /**
  344.      * @param mixed $cliente
  345.      * @return OperacionDetalle
  346.      */
  347.     public function setCliente($cliente)
  348.     {
  349.         $this->cliente $cliente;
  350.         return $this;
  351.     }
  352.     /**
  353.      * @return mixed
  354.      */
  355.     public function getClienteRazonSocial()
  356.     {
  357.         return $this->clienteRazonSocial;
  358.     }
  359.     /**
  360.      * @param mixed $clienteRazonSocial
  361.      * @return OperacionDetalle
  362.      */
  363.     public function setClienteRazonSocial($clienteRazonSocial)
  364.     {
  365.         $this->clienteRazonSocial $clienteRazonSocial;
  366.         return $this;
  367.     }
  368.     /**
  369.      * @return mixed
  370.      */
  371.     public function getCanal()
  372.     {
  373.         return $this->canal;
  374.     }
  375.     /**
  376.      * @param mixed $canal
  377.      * @return OperacionDetalle
  378.      */
  379.     public function setCanal($canal)
  380.     {
  381.         $this->canal $canal;
  382.         return $this;
  383.     }
  384.     /**
  385.      * @return mixed
  386.      */
  387.     public function getCanalNombre()
  388.     {
  389.         return $this->canalNombre;
  390.     }
  391.     /**
  392.      * @param mixed $canalNombre
  393.      * @return OperacionDetalle
  394.      */
  395.     public function setCanalNombre($canalNombre)
  396.     {
  397.         $this->canalNombre $canalNombre;
  398.         return $this;
  399.     }
  400.     /**
  401.      * @return mixed
  402.      */
  403.     public function getUsuario()
  404.     {
  405.         return $this->usuario;
  406.     }
  407.     /**
  408.      * @param mixed $usuario
  409.      * @return OperacionDetalle
  410.      */
  411.     public function setUsuario($usuario)
  412.     {
  413.         $this->usuario $usuario;
  414.         return $this;
  415.     }
  416.     /**
  417.      * @return mixed
  418.      */
  419.     public function getUsuarioIDperseo()
  420.     {
  421.         return $this->usuarioIDperseo;
  422.     }
  423.     /**
  424.      * @param mixed $usuarioIDperseo
  425.      * @return OperacionDetalle
  426.      */
  427.     public function setUsuarioIDperseo($usuarioIDperseo)
  428.     {
  429.         $this->usuarioIDperseo $usuarioIDperseo;
  430.         return $this;
  431.     }
  432.     /**
  433.      * @return mixed
  434.      */
  435.     public function getUser()
  436.     {
  437.         return $this->user;
  438.     }
  439.     /**
  440.      * @param mixed $user
  441.      * @return OperacionDetalle
  442.      */
  443.     public function setUser($user)
  444.     {
  445.         $this->user $user;
  446.         return $this;
  447.     }
  448.     /**
  449.      * @return mixed
  450.      */
  451.     public function getUserUsername()
  452.     {
  453.         return $this->userUsername;
  454.     }
  455.     /**
  456.      * @param mixed $userUsername
  457.      * @return OperacionDetalle
  458.      */
  459.     public function setUserUsername($userUsername)
  460.     {
  461.         $this->userUsername $userUsername;
  462.         return $this;
  463.     }
  464.     /**
  465.      * @return mixed
  466.      */
  467.     public function getUserEmail()
  468.     {
  469.         return $this->userEmail;
  470.     }
  471.     /**
  472.      * @param mixed $userEmail
  473.      * @return OperacionDetalle
  474.      */
  475.     public function setUserEmail($userEmail)
  476.     {
  477.         $this->userEmail $userEmail;
  478.         return $this;
  479.     }
  480.     /**
  481.      * @return mixed
  482.      */
  483.     public function getUserNombre()
  484.     {
  485.         return $this->userNombre;
  486.     }
  487.     /**
  488.      * @param mixed $userNombre
  489.      * @return OperacionDetalle
  490.      */
  491.     public function setUserNombre($userNombre)
  492.     {
  493.         $this->userNombre $userNombre;
  494.         return $this;
  495.     }
  496.     /**
  497.      * @return mixed
  498.      */
  499.     public function getUserPrimerApellido()
  500.     {
  501.         return $this->userPrimerApellido;
  502.     }
  503.     /**
  504.      * @param mixed $userPrimerApellido
  505.      * @return OperacionDetalle
  506.      */
  507.     public function setUserPrimerApellido($userPrimerApellido)
  508.     {
  509.         $this->userPrimerApellido $userPrimerApellido;
  510.         return $this;
  511.     }
  512.     /**
  513.      * @return mixed
  514.      */
  515.     public function getUserSegundoApellido()
  516.     {
  517.         return $this->userSegundoApellido;
  518.     }
  519.     /**
  520.      * @param mixed $userSegundoApellido
  521.      * @return OperacionDetalle
  522.      */
  523.     public function setUserSegundoApellido($userSegundoApellido)
  524.     {
  525.         $this->userSegundoApellido $userSegundoApellido;
  526.         return $this;
  527.     }
  528.     /**
  529.      * @return mixed
  530.      */
  531.     public function getFechaTramitacion()
  532.     {
  533.         return $this->fechaTramitacion;
  534.     }
  535.     /**
  536.      * @param mixed $fechaTramitacion
  537.      * @return OperacionDetalle
  538.      */
  539.     public function setFechaTramitacion($fechaTramitacion)
  540.     {
  541.         $this->fechaTramitacion $fechaTramitacion;
  542.         return $this;
  543.     }
  544.     /**
  545.      * @return mixed
  546.      */
  547.     public function getFechaTramitada()
  548.     {
  549.         return $this->fechaTramitada;
  550.     }
  551.     /**
  552.      * @param mixed $fechaTramitada
  553.      * @return OperacionDetalle
  554.      */
  555.     public function setFechaTramitada($fechaTramitada)
  556.     {
  557.         $this->fechaTramitada $fechaTramitada;
  558.         return $this;
  559.     }
  560.     /**
  561.      * @return mixed
  562.      */
  563.     public function getFechaConfirmada()
  564.     {
  565.         return $this->fechaConfirmada;
  566.     }
  567.     /**
  568.      * @param mixed $fechaConfirmada
  569.      * @return OperacionDetalle
  570.      */
  571.     public function setFechaConfirmada($fechaConfirmada)
  572.     {
  573.         $this->fechaConfirmada $fechaConfirmada;
  574.         return $this;
  575.     }
  576.     /**
  577.      * @return mixed
  578.      */
  579.     public function getFechaCancelada()
  580.     {
  581.         return $this->fechaCancelada;
  582.     }
  583.     /**
  584.      * @param mixed $fechaCancelada
  585.      * @return OperacionDetalle
  586.      */
  587.     public function setFechaCancelada($fechaCancelada)
  588.     {
  589.         $this->fechaCancelada $fechaCancelada;
  590.         return $this;
  591.     }
  592.     /**
  593.      * @return mixed
  594.      */
  595.     public function getFechaAsentada()
  596.     {
  597.         return $this->fechaAsentada;
  598.     }
  599.     /**
  600.      * @param mixed $fechaAsentada
  601.      * @return OperacionDetalle
  602.      */
  603.     public function setFechaAsentada($fechaAsentada)
  604.     {
  605.         $this->fechaAsentada $fechaAsentada;
  606.         return $this;
  607.     }
  608.     /**
  609.      * @return mixed
  610.      */
  611.     public function getFechaFinalizada()
  612.     {
  613.         return $this->fechaFinalizada;
  614.     }
  615.     /**
  616.      * @param mixed $fechaFinalizada
  617.      * @return OperacionDetalle
  618.      */
  619.     public function setFechaFinalizada($fechaFinalizada)
  620.     {
  621.         $this->fechaFinalizada $fechaFinalizada;
  622.         return $this;
  623.     }
  624.     /**
  625.      * @return mixed
  626.      */
  627.     public function getDetalle()
  628.     {
  629.         return $this->detalle;
  630.     }
  631.     /**
  632.      * @param mixed $detalle
  633.      * @return OperacionDetalle
  634.      */
  635.     public function setDetalle($detalle)
  636.     {
  637.         $this->detalle $detalle;
  638.         return $this;
  639.     }
  640.     /**
  641.      * @return mixed
  642.      */
  643.     public function getDetalleReloj()
  644.     {
  645.         return $this->detalleReloj;
  646.     }
  647.     /**
  648.      * @param mixed $detalleReloj
  649.      * @return OperacionDetalle
  650.      */
  651.     public function setDetalleReloj($detalleReloj)
  652.     {
  653.         $this->detalleReloj $detalleReloj;
  654.         return $this;
  655.     }
  656.     /**
  657.      * @return mixed
  658.      */
  659.     public function getDetalleRelojIDperseo()
  660.     {
  661.         return $this->detalleRelojIDperseo;
  662.     }
  663.     public function getDetalleRelojCodigo()
  664.     {
  665.         return $this->detalleRelojCodigo;
  666.     }
  667.     /**
  668.      * @param mixed $detalleRelojIDperseo
  669.      * @return OperacionDetalle
  670.      */
  671.     public function setDetalleRelojIDperseo($detalleRelojIDperseo)
  672.     {
  673.         $this->detalleRelojIDperseo $detalleRelojIDperseo;
  674.         return $this;
  675.     }
  676.     /**
  677.      * @return mixed
  678.      */
  679.     public function getDetalleRelojMarca()
  680.     {
  681.         return $this->detalleRelojMarca;
  682.     }
  683.     /**
  684.      * @param mixed $detalleRelojMarca
  685.      * @return OperacionDetalle
  686.      */
  687.     public function setDetalleRelojMarca($detalleRelojMarca)
  688.     {
  689.         $this->detalleRelojMarca $detalleRelojMarca;
  690.         return $this;
  691.     }
  692.     /**
  693.      * @return mixed
  694.      */
  695.     public function getDetalleRelojMarcaNombre()
  696.     {
  697.         return $this->detalleRelojMarcaNombre;
  698.     }
  699.     /**
  700.      * @param mixed $detalleRelojMarcaNombre
  701.      * @return OperacionDetalle
  702.      */
  703.     public function setDetalleRelojMarcaNombre($detalleRelojMarcaNombre)
  704.     {
  705.         $this->detalleRelojMarcaNombre $detalleRelojMarcaNombre;
  706.         return $this;
  707.     }
  708.     /**
  709.      * @return mixed
  710.      */
  711.     public function getDetalleRelojModelo1()
  712.     {
  713.         return $this->detalleRelojModelo1;
  714.     }
  715.     /**
  716.      * @param mixed $detalleRelojModelo1
  717.      * @return OperacionDetalle
  718.      */
  719.     public function setDetalleRelojModelo1($detalleRelojModelo1)
  720.     {
  721.         $this->detalleRelojModelo1 $detalleRelojModelo1;
  722.         return $this;
  723.     }
  724.     /**
  725.      * @return mixed
  726.      */
  727.     public function getDetalleRelojRef1()
  728.     {
  729.         return $this->detalleRelojRef1;
  730.     }
  731.     /**
  732.      * @param mixed $detalleRelojRef1
  733.      * @return OperacionDetalle
  734.      */
  735.     public function setDetalleRelojRef1($detalleRelojRef1)
  736.     {
  737.         $this->detalleRelojRef1 $detalleRelojRef1;
  738.         return $this;
  739.     }
  740.     /**
  741.      * @return mixed
  742.      */
  743.     public function getDetallePrecioCoste()
  744.     {
  745.         return $this->detallePrecioCoste;
  746.     }
  747.     /**
  748.      * @param mixed $detallePrecioCoste
  749.      * @return OperacionDetalle
  750.      */
  751.     public function setDetallePrecioCoste($detallePrecioCoste)
  752.     {
  753.         $this->detallePrecioCoste $detallePrecioCoste;
  754.         return $this;
  755.     }
  756.     /**
  757.      * @return mixed
  758.      */
  759.     public function getDetallePrecioVenta()
  760.     {
  761.         return $this->detallePrecioVenta;
  762.     }
  763.     /**
  764.      * @param mixed $detallePrecioVenta
  765.      * @return OperacionDetalle
  766.      */
  767.     public function setDetallePrecioVenta($detallePrecioVenta)
  768.     {
  769.         $this->detallePrecioVenta $detallePrecioVenta;
  770.         return $this;
  771.     }
  772.     /*
  773.      * @return DateTime
  774.      * @throws Exception
  775.      */
  776.     /*public function getEstadoFecha(): DateTime
  777.     {
  778.         switch($this->getEstadoKey())
  779.         {
  780.             case EstadoOperacionEnum::ESTADO_EN_TRAMITACION:
  781.                 $fecha = $this->getFechaTramitacion();
  782.                 break;
  783.             case EstadoOperacionEnum::ESTADO_TRAMITADA:
  784.                 $fecha = $this->getFechaTramitada();
  785.                 break;
  786.             case EstadoOperacionEnum::ESTADO_CONFIRMADA:
  787.                 $fecha = $this->getFechaConfirmada();
  788.                 break;
  789.             default:
  790.                 $fecha = null;
  791.                 break;
  792.         }
  793.         return new DateTime($fecha);
  794.     }*/
  795.     public function getFecha(): ?\DateTimeInterface
  796.     {
  797.         return $this->fecha;
  798.     }
  799.     public function setFecha(\DateTimeInterface $fecha): static
  800.     {
  801.         $this->fecha $fecha;
  802.         return $this;
  803.     }
  804.     public function getDeletedAt(): ?DateTimeInterface
  805.     {
  806.         return $this->deletedAt;
  807.     }
  808.     public function setDeletedAt(?DateTimeInterface $deletedAt): self
  809.     {
  810.         $this->deletedAt $deletedAt;
  811.         return $this;
  812.     }
  813. }