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")
  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_modelo2")
  162.      */
  163.     private $detalleRelojModelo2;
  164.     /**
  165.      * @ORM\Column(type="string", name="detalle_reloj_ref1")
  166.      */
  167.     private $detalleRelojRef1;
  168.     /**
  169.      * @ORM\Column(type="string", name="detalle_reloj_ref2")
  170.      */
  171.     private $detalleRelojRef2;
  172.     /**
  173.      * @ORM\Column(type="string", name="detalle_reloj_serie")
  174.      */
  175.     private $detalleRelojSerie;
  176.     /**
  177.      * @ORM\Column(type="float", precision=2, name="detalle_precio_coste")
  178.      */
  179.     private $detallePrecioCoste;
  180.     /**
  181.      * @ORM\Column(type="float", precision=2, name="detalle_precio_venta")
  182.      */
  183.     private $detallePrecioVenta;
  184.     /**
  185.      * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  186.      */
  187.     protected $deletedAt;
  188.     /**
  189.      * @return mixed
  190.      */
  191.     public function getId()
  192.     {
  193.         return $this->id;
  194.     }
  195.     /**
  196.      * @param mixed $id
  197.      * @return OperacionDetalle
  198.      */
  199.     public function setId($id)
  200.     {
  201.         $this->id $id;
  202.         return $this;
  203.     }
  204.     /**
  205.      * @return mixed
  206.      */
  207.     public function getOperacion()
  208.     {
  209.         return $this->operacion;
  210.     }
  211.     /**
  212.      * @param mixed $operacion
  213.      * @return OperacionDetalle
  214.      */
  215.     public function setOperacion($operacion)
  216.     {
  217.         $this->operacion $operacion;
  218.         return $this;
  219.     }
  220.     /**
  221.      * @return mixed
  222.      */
  223.     public function getTipo()
  224.     {
  225.         return $this->tipo;
  226.     }
  227.     /**
  228.      * @param mixed $tipo
  229.      * @return OperacionDetalle
  230.      */
  231.     public function setTipo($tipo)
  232.     {
  233.         $this->tipo $tipo;
  234.         return $this;
  235.     }
  236.     /**
  237.      * @return mixed
  238.      */
  239.     public function getIDperseo()
  240.     {
  241.         return $this->IDperseo;
  242.     }
  243.     /**
  244.      * @param mixed $IDperseo
  245.      * @return OperacionDetalle
  246.      */
  247.     public function setIDperseo($IDperseo)
  248.     {
  249.         $this->IDperseo $IDperseo;
  250.         return $this;
  251.     }
  252.     /**
  253.      * @return mixed
  254.      */
  255.     public function getValoracionOperacion()
  256.     {
  257.         return $this->valoracionOperacion;
  258.     }
  259.     /**
  260.      * @param mixed $valoracionOperacion
  261.      * @return OperacionDetalle
  262.      */
  263.     public function setValoracionOperacion($valoracionOperacion)
  264.     {
  265.         $this->valoracionOperacion $valoracionOperacion;
  266.         return $this;
  267.     }
  268.     /**
  269.      * @return mixed
  270.      */
  271.     public function getValoracionIDperseo()
  272.     {
  273.         return $this->valoracionIDperseo;
  274.     }
  275.     /**
  276.      * @param mixed $valoracionIDperseo
  277.      * @return OperacionDetalle
  278.      */
  279.     public function setValoracionIDperseo($valoracionIDperseo)
  280.     {
  281.         $this->valoracionIDperseo $valoracionIDperseo;
  282.         return $this;
  283.     }
  284.     /**
  285.      * @return mixed
  286.      */
  287.     public function getEstado()
  288.     {
  289.         return $this->estado;
  290.     }
  291.     /**
  292.      * @param mixed $estado
  293.      * @return OperacionDetalle
  294.      */
  295.     public function setEstado($estado)
  296.     {
  297.         $this->estado $estado;
  298.         return $this;
  299.     }
  300.     /**
  301.      * @return mixed
  302.      */
  303.     public function getEstadoKey()
  304.     {
  305.         return $this->estadoKey;
  306.     }
  307.     /**
  308.      * @param mixed $estadoKey
  309.      * @return OperacionDetalle
  310.      */
  311.     public function setEstadoKey($estadoKey)
  312.     {
  313.         $this->estadoKey $estadoKey;
  314.         return $this;
  315.     }
  316.     /**
  317.      * @return mixed
  318.      */
  319.     public function getEstadoNombre()
  320.     {
  321.         return $this->estadoNombre;
  322.     }
  323.     /**
  324.      * @param mixed $estadoNombre
  325.      * @return OperacionDetalle
  326.      */
  327.     public function setEstadoNombre($estadoNombre)
  328.     {
  329.         $this->estadoNombre $estadoNombre;
  330.         return $this;
  331.     }
  332.     /**
  333.      * @return mixed
  334.      */
  335.     public function getEstadoFecha()
  336.     {
  337.         return $this->estadoFecha;
  338.     }
  339.     /**
  340.      * @param mixed $estadoFecha
  341.      * @return OperacionDetalle
  342.      */
  343.     public function setEstadoFecha($estadoFecha)
  344.     {
  345.         $this->estadoFecha $estadoFecha;
  346.         return $this;
  347.     }
  348.     /**
  349.      * @return mixed
  350.      */
  351.     public function getCliente()
  352.     {
  353.         return $this->cliente;
  354.     }
  355.     /**
  356.      * @param mixed $cliente
  357.      * @return OperacionDetalle
  358.      */
  359.     public function setCliente($cliente)
  360.     {
  361.         $this->cliente $cliente;
  362.         return $this;
  363.     }
  364.     /**
  365.      * @return mixed
  366.      */
  367.     public function getClienteRazonSocial()
  368.     {
  369.         return $this->clienteRazonSocial;
  370.     }
  371.     /**
  372.      * @param mixed $clienteRazonSocial
  373.      * @return OperacionDetalle
  374.      */
  375.     public function setClienteRazonSocial($clienteRazonSocial)
  376.     {
  377.         $this->clienteRazonSocial $clienteRazonSocial;
  378.         return $this;
  379.     }
  380.     /**
  381.      * @return mixed
  382.      */
  383.     public function getCanal()
  384.     {
  385.         return $this->canal;
  386.     }
  387.     /**
  388.      * @param mixed $canal
  389.      * @return OperacionDetalle
  390.      */
  391.     public function setCanal($canal)
  392.     {
  393.         $this->canal $canal;
  394.         return $this;
  395.     }
  396.     /**
  397.      * @return mixed
  398.      */
  399.     public function getCanalNombre()
  400.     {
  401.         return $this->canalNombre;
  402.     }
  403.     /**
  404.      * @param mixed $canalNombre
  405.      * @return OperacionDetalle
  406.      */
  407.     public function setCanalNombre($canalNombre)
  408.     {
  409.         $this->canalNombre $canalNombre;
  410.         return $this;
  411.     }
  412.     /**
  413.      * @return mixed
  414.      */
  415.     public function getUsuario()
  416.     {
  417.         return $this->usuario;
  418.     }
  419.     /**
  420.      * @param mixed $usuario
  421.      * @return OperacionDetalle
  422.      */
  423.     public function setUsuario($usuario)
  424.     {
  425.         $this->usuario $usuario;
  426.         return $this;
  427.     }
  428.     /**
  429.      * @return mixed
  430.      */
  431.     public function getUsuarioIDperseo()
  432.     {
  433.         return $this->usuarioIDperseo;
  434.     }
  435.     /**
  436.      * @param mixed $usuarioIDperseo
  437.      * @return OperacionDetalle
  438.      */
  439.     public function setUsuarioIDperseo($usuarioIDperseo)
  440.     {
  441.         $this->usuarioIDperseo $usuarioIDperseo;
  442.         return $this;
  443.     }
  444.     /**
  445.      * @return mixed
  446.      */
  447.     public function getUser()
  448.     {
  449.         return $this->user;
  450.     }
  451.     /**
  452.      * @param mixed $user
  453.      * @return OperacionDetalle
  454.      */
  455.     public function setUser($user)
  456.     {
  457.         $this->user $user;
  458.         return $this;
  459.     }
  460.     /**
  461.      * @return mixed
  462.      */
  463.     public function getUserUsername()
  464.     {
  465.         return $this->userUsername;
  466.     }
  467.     /**
  468.      * @param mixed $userUsername
  469.      * @return OperacionDetalle
  470.      */
  471.     public function setUserUsername($userUsername)
  472.     {
  473.         $this->userUsername $userUsername;
  474.         return $this;
  475.     }
  476.     /**
  477.      * @return mixed
  478.      */
  479.     public function getUserEmail()
  480.     {
  481.         return $this->userEmail;
  482.     }
  483.     /**
  484.      * @param mixed $userEmail
  485.      * @return OperacionDetalle
  486.      */
  487.     public function setUserEmail($userEmail)
  488.     {
  489.         $this->userEmail $userEmail;
  490.         return $this;
  491.     }
  492.     /**
  493.      * @return mixed
  494.      */
  495.     public function getUserNombre()
  496.     {
  497.         return $this->userNombre;
  498.     }
  499.     /**
  500.      * @param mixed $userNombre
  501.      * @return OperacionDetalle
  502.      */
  503.     public function setUserNombre($userNombre)
  504.     {
  505.         $this->userNombre $userNombre;
  506.         return $this;
  507.     }
  508.     /**
  509.      * @return mixed
  510.      */
  511.     public function getUserPrimerApellido()
  512.     {
  513.         return $this->userPrimerApellido;
  514.     }
  515.     /**
  516.      * @param mixed $userPrimerApellido
  517.      * @return OperacionDetalle
  518.      */
  519.     public function setUserPrimerApellido($userPrimerApellido)
  520.     {
  521.         $this->userPrimerApellido $userPrimerApellido;
  522.         return $this;
  523.     }
  524.     /**
  525.      * @return mixed
  526.      */
  527.     public function getUserSegundoApellido()
  528.     {
  529.         return $this->userSegundoApellido;
  530.     }
  531.     /**
  532.      * @param mixed $userSegundoApellido
  533.      * @return OperacionDetalle
  534.      */
  535.     public function setUserSegundoApellido($userSegundoApellido)
  536.     {
  537.         $this->userSegundoApellido $userSegundoApellido;
  538.         return $this;
  539.     }
  540.     /**
  541.      * @return mixed
  542.      */
  543.     public function getFechaTramitacion()
  544.     {
  545.         return $this->fechaTramitacion;
  546.     }
  547.     /**
  548.      * @param mixed $fechaTramitacion
  549.      * @return OperacionDetalle
  550.      */
  551.     public function setFechaTramitacion($fechaTramitacion)
  552.     {
  553.         $this->fechaTramitacion $fechaTramitacion;
  554.         return $this;
  555.     }
  556.     /**
  557.      * @return mixed
  558.      */
  559.     public function getFechaTramitada()
  560.     {
  561.         return $this->fechaTramitada;
  562.     }
  563.     /**
  564.      * @param mixed $fechaTramitada
  565.      * @return OperacionDetalle
  566.      */
  567.     public function setFechaTramitada($fechaTramitada)
  568.     {
  569.         $this->fechaTramitada $fechaTramitada;
  570.         return $this;
  571.     }
  572.     /**
  573.      * @return mixed
  574.      */
  575.     public function getFechaConfirmada()
  576.     {
  577.         return $this->fechaConfirmada;
  578.     }
  579.     /**
  580.      * @param mixed $fechaConfirmada
  581.      * @return OperacionDetalle
  582.      */
  583.     public function setFechaConfirmada($fechaConfirmada)
  584.     {
  585.         $this->fechaConfirmada $fechaConfirmada;
  586.         return $this;
  587.     }
  588.     /**
  589.      * @return mixed
  590.      */
  591.     public function getFechaCancelada()
  592.     {
  593.         return $this->fechaCancelada;
  594.     }
  595.     /**
  596.      * @param mixed $fechaCancelada
  597.      * @return OperacionDetalle
  598.      */
  599.     public function setFechaCancelada($fechaCancelada)
  600.     {
  601.         $this->fechaCancelada $fechaCancelada;
  602.         return $this;
  603.     }
  604.     /**
  605.      * @return mixed
  606.      */
  607.     public function getFechaAsentada()
  608.     {
  609.         return $this->fechaAsentada;
  610.     }
  611.     /**
  612.      * @param mixed $fechaAsentada
  613.      * @return OperacionDetalle
  614.      */
  615.     public function setFechaAsentada($fechaAsentada)
  616.     {
  617.         $this->fechaAsentada $fechaAsentada;
  618.         return $this;
  619.     }
  620.     /**
  621.      * @return mixed
  622.      */
  623.     public function getFechaFinalizada()
  624.     {
  625.         return $this->fechaFinalizada;
  626.     }
  627.     /**
  628.      * @param mixed $fechaFinalizada
  629.      * @return OperacionDetalle
  630.      */
  631.     public function setFechaFinalizada($fechaFinalizada)
  632.     {
  633.         $this->fechaFinalizada $fechaFinalizada;
  634.         return $this;
  635.     }
  636.     /**
  637.      * @return mixed
  638.      */
  639.     public function getDetalle()
  640.     {
  641.         return $this->detalle;
  642.     }
  643.     /**
  644.      * @param mixed $detalle
  645.      * @return OperacionDetalle
  646.      */
  647.     public function setDetalle($detalle)
  648.     {
  649.         $this->detalle $detalle;
  650.         return $this;
  651.     }
  652.     /**
  653.      * @return mixed
  654.      */
  655.     public function getDetalleReloj()
  656.     {
  657.         return $this->detalleReloj;
  658.     }
  659.     /**
  660.      * @param mixed $detalleReloj
  661.      * @return OperacionDetalle
  662.      */
  663.     public function setDetalleReloj($detalleReloj)
  664.     {
  665.         $this->detalleReloj $detalleReloj;
  666.         return $this;
  667.     }
  668.     /**
  669.      * @return mixed
  670.      */
  671.     public function getDetalleRelojIDperseo()
  672.     {
  673.         return $this->detalleRelojIDperseo;
  674.     }
  675.     public function getDetalleRelojCodigo()
  676.     {
  677.         return $this->detalleRelojCodigo;
  678.     }
  679.     /**
  680.      * @param mixed $detalleRelojIDperseo
  681.      * @return OperacionDetalle
  682.      */
  683.     public function setDetalleRelojIDperseo($detalleRelojIDperseo)
  684.     {
  685.         $this->detalleRelojIDperseo $detalleRelojIDperseo;
  686.         return $this;
  687.     }
  688.     /**
  689.      * @return mixed
  690.      */
  691.     public function getDetalleRelojMarca()
  692.     {
  693.         return $this->detalleRelojMarca;
  694.     }
  695.     /**
  696.      * @param mixed $detalleRelojMarca
  697.      * @return OperacionDetalle
  698.      */
  699.     public function setDetalleRelojMarca($detalleRelojMarca)
  700.     {
  701.         $this->detalleRelojMarca $detalleRelojMarca;
  702.         return $this;
  703.     }
  704.     /**
  705.      * @return mixed
  706.      */
  707.     public function getDetalleRelojMarcaNombre()
  708.     {
  709.         return $this->detalleRelojMarcaNombre;
  710.     }
  711.     /**
  712.      * @param mixed $detalleRelojMarcaNombre
  713.      * @return OperacionDetalle
  714.      */
  715.     public function setDetalleRelojMarcaNombre($detalleRelojMarcaNombre)
  716.     {
  717.         $this->detalleRelojMarcaNombre $detalleRelojMarcaNombre;
  718.         return $this;
  719.     }
  720.     /**
  721.      * @return mixed
  722.      */
  723.     public function getDetalleRelojModelo1()
  724.     {
  725.         return $this->detalleRelojModelo1;
  726.     }
  727.     /**
  728.      * @param mixed $detalleRelojModelo1
  729.      * @return OperacionDetalle
  730.      */
  731.     public function setDetalleRelojModelo1($detalleRelojModelo1)
  732.     {
  733.         $this->detalleRelojModelo1 $detalleRelojModelo1;
  734.         return $this;
  735.     }
  736.     /**
  737.      * @return mixed
  738.      */
  739.     public function getDetalleRelojModelo2()
  740.     {
  741.         return $this->detalleRelojModelo2;
  742.     }
  743.     /**
  744.      * @param mixed $detalleRelojModelo2
  745.      * @return OperacionDetalle
  746.      */
  747.     public function setDetalleRelojModelo2($detalleRelojModelo2)
  748.     {
  749.         $this->detalleRelojModelo2 $detalleRelojModelo2;
  750.         return $this;
  751.     }
  752.     /**
  753.      * @return mixed
  754.      */
  755.     public function getDetalleRelojRef1()
  756.     {
  757.         return $this->detalleRelojRef1;
  758.     }
  759.     /**
  760.      * @param mixed $detalleRelojRef1
  761.      * @return OperacionDetalle
  762.      */
  763.     public function setDetalleRelojRef1($detalleRelojRef1)
  764.     {
  765.         $this->detalleRelojRef1 $detalleRelojRef1;
  766.         return $this;
  767.     }
  768.     /**
  769.      * @return mixed
  770.      */
  771.     public function getDetalleRelojRef2()
  772.     {
  773.         return $this->detalleRelojRef2;
  774.     }
  775.     /**
  776.      * @param mixed $detalleRelojRef2
  777.      * @return OperacionDetalle
  778.      */
  779.     public function setDetalleRelojRef2($detalleRelojRef2)
  780.     {
  781.         $this->detalleRelojRef2 $detalleRelojRef2;
  782.         return $this;
  783.     }
  784.     /**
  785.      * @return mixed
  786.      */
  787.     public function getDetalleRelojSerie()
  788.     {
  789.         return $this->detalleRelojSerie;
  790.     }
  791.     /**
  792.      * @param mixed $detalleRelojSerie
  793.      * @return OperacionDetalle
  794.      */
  795.     public function setDetalleRelojSerie($detalleRelojSerie)
  796.     {
  797.         $this->detalleRelojSerie $detalleRelojSerie;
  798.         return $this;
  799.     }
  800.     /**
  801.      * @return mixed
  802.      */
  803.     public function getDetallePrecioCoste()
  804.     {
  805.         return $this->detallePrecioCoste;
  806.     }
  807.     /**
  808.      * @param mixed $detallePrecioCoste
  809.      * @return OperacionDetalle
  810.      */
  811.     public function setDetallePrecioCoste($detallePrecioCoste)
  812.     {
  813.         $this->detallePrecioCoste $detallePrecioCoste;
  814.         return $this;
  815.     }
  816.     /**
  817.      * @return mixed
  818.      */
  819.     public function getDetallePrecioVenta()
  820.     {
  821.         return $this->detallePrecioVenta;
  822.     }
  823.     /**
  824.      * @param mixed $detallePrecioVenta
  825.      * @return OperacionDetalle
  826.      */
  827.     public function setDetallePrecioVenta($detallePrecioVenta)
  828.     {
  829.         $this->detallePrecioVenta $detallePrecioVenta;
  830.         return $this;
  831.     }
  832.     /*
  833.      * @return DateTime
  834.      * @throws Exception
  835.      */
  836.     /*public function getEstadoFecha(): DateTime
  837.     {
  838.         switch($this->getEstadoKey())
  839.         {
  840.             case EstadoOperacionEnum::ESTADO_EN_TRAMITACION:
  841.                 $fecha = $this->getFechaTramitacion();
  842.                 break;
  843.             case EstadoOperacionEnum::ESTADO_TRAMITADA:
  844.                 $fecha = $this->getFechaTramitada();
  845.                 break;
  846.             case EstadoOperacionEnum::ESTADO_CONFIRMADA:
  847.                 $fecha = $this->getFechaConfirmada();
  848.                 break;
  849.             default:
  850.                 $fecha = null;
  851.                 break;
  852.         }
  853.         return new DateTime($fecha);
  854.     }*/
  855.     public function getFecha(): ?\DateTimeInterface
  856.     {
  857.         return $this->fecha;
  858.     }
  859.     public function setFecha(\DateTimeInterface $fecha): static
  860.     {
  861.         $this->fecha $fecha;
  862.         return $this;
  863.     }
  864.     public function getDeletedAt(): ?DateTimeInterface
  865.     {
  866.         return $this->deletedAt;
  867.     }
  868.     public function setDeletedAt(?DateTimeInterface $deletedAt): self
  869.     {
  870.         $this->deletedAt $deletedAt;
  871.         return $this;
  872.     }
  873. }