src/Entity/Reloj.php line 33

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Enum\CalibreEnum;
  4. use App\Enum\EstadoOperacionEnum;
  5. use App\Enum\EstadoRelojEnum;
  6. use App\Enum\GeneroRelojEnum;
  7. use App\Enum\PiezaRepuestoEnum;
  8. use App\Enum\ServicioMantenimientoEnum;
  9. use App\Enum\TipoCierreEnum;
  10. use App\Enum\TipoCristalEnum;
  11. use App\Enum\TipoEsferaIndiceEnum;
  12. use App\Enum\TipoOperacionEnum;
  13. use DateTime;
  14. use DateTimeInterface;
  15. use Doctrine\Common\Collections\ArrayCollection;
  16. use Doctrine\Common\Collections\Collection;
  17. use Doctrine\Common\Collections\Criteria;
  18. use Doctrine\DBAL\Types\Types;
  19. use Doctrine\ORM\Mapping as ORM;
  20. use Gedmo\Mapping\Annotation as Gedmo;
  21. use Symfony\Component\HttpFoundation\File\File;
  22. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  23. /**
  24.  * @ORM\Entity(repositoryClass="App\Repository\RelojRepository")
  25.  * @ORM\Table(name="reloj")
  26.  * @ORM\EntityListeners({"App\EntityListener\Reloj\CalcularIDPerseoListener", "App\EntityListener\Reloj\CalcularCodigoListener"})
  27.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  28.  * @Vich\Uploadable
  29.  */
  30. class Reloj
  31. {
  32.     /**
  33.      * @ORM\Id
  34.      * @ORM\Column(type="bigint", options={"unsigned":true})
  35.      * @ORM\GeneratedValue(strategy="AUTO")
  36.      */
  37.     protected $id;
  38.     /**
  39.      * @ORM\Column(type="string", unique=true, nullable=false)
  40.      */
  41.     protected $codigo;
  42.     /**
  43.      * @ORM\Column(
  44.      *     type="string",
  45.      *     unique=true,
  46.      *     nullable=false,
  47.      *     name="id_perseo",
  48.      *     options={"comment":"Identificador de perseo único generado aleatoriamente combinación letras y números"}
  49.      * )
  50.      */
  51.     protected $IDperseo;
  52.     /**
  53.      * @ORM\Column(
  54.      *     type="string",
  55.      *     length=4,
  56.      *     nullable=true,
  57.      *     options={"comment":"Valores a tomar REBU ó IVA, por defecto REBU"}
  58.      * )
  59.      */
  60.     protected $regimen;
  61.     /**
  62.      * @ORM\Column(type="string", nullable=true)
  63.      */
  64.     protected $foto;
  65.     /**
  66.      * @Vich\UploadableField(mapping="reloj", fileNameProperty="foto")
  67.      * @var File
  68.      */
  69.     protected $fotoFile;
  70.     /**
  71.      * @ORM\Column(type="string", nullable=true, name="foto_valoracion")
  72.      */
  73.     private $fotoValoracion;
  74.     /**
  75.      * @Vich\UploadableField(mapping="reloj", fileNameProperty="foto_valoracion")
  76.      * @var File
  77.      */
  78.     protected $fotoValoracionFile;
  79.     /**
  80.      * @ORM\Column(type="string", nullable=true, name="foto_set")
  81.      */
  82.     private $fotoSet;
  83.     /**
  84.      * @Vich\UploadableField(mapping="reloj", fileNameProperty="foto_set")
  85.      * @var File
  86.      */
  87.     protected $fotoSetFile;
  88.     /**
  89.      * @ORM\Column(type="string", nullable=true, name="foto_crono", options={"comment":"foto del cronocomparador"})
  90.      */
  91.     private $fotoCrono;
  92.     /**
  93.      * @Vich\UploadableField(mapping="reloj", fileNameProperty="foto_crono")
  94.      * @var File
  95.      */
  96.     protected $fotoCronoFile;
  97.     /**
  98.      * @ORM\Column(type="string", nullable=true)
  99.      */
  100.     private $video;
  101.     /**
  102.      * @Vich\UploadableField(mapping="reloj", fileNameProperty="video")
  103.      * @var File
  104.      */
  105.     protected $videoFile;
  106.     /**
  107.      * @ORM\Column(type="string", nullable=true)
  108.      */
  109.     protected $modelo1;
  110.     /**
  111.      * @ORM\Column(type="string", nullable=true)
  112.      */
  113.     protected $modelo2;
  114.     /**
  115.      * @ORM\Column(type="string", nullable=true)
  116.      */
  117.     protected $ref1;
  118.     /**
  119.      * @ORM\Column(type="string", nullable=true)
  120.      */
  121.     protected $ref2;
  122.     /**
  123.      * @ORM\Column(type="string", nullable=true)
  124.      */
  125.     protected $serie;
  126.     /**
  127.      * @ORM\Column(type="float", nullable=true, precision=2)
  128.      */
  129.     protected $peso;
  130.     /**
  131.      * @ORM\Column(type="datetime", nullable=true, options={"comment":"Fecha comprado por  primera vez"})
  132.      */
  133.     protected $fecha;
  134.     /**
  135.      * @ORM\Column(type="boolean", nullable=false, options={"default":0})
  136.      */
  137.     protected $caja;
  138.     /**
  139.      * @ORM\Column(type="boolean", nullable=false, options={"default":0})
  140.      */
  141.     protected $papeles;
  142.     /**
  143.      * @ORM\Column(type="text", nullable=true)
  144.      */
  145.     protected $otros;
  146.     /**
  147.      * @ORM\Column(type="float", nullable=true, name="itp", precision=2, options={"default":"0.0","comment":"%"})
  148.      */
  149.     protected $ITP;
  150.     /**
  151.      * @ORM\Column(
  152.      *     type="datetime",
  153.      *     nullable=true,
  154.      *     name="fecha_valoracion",
  155.      *     options={"comment":"Fecha valoracion es la fecha enviada"}
  156.      * )
  157.      */
  158.     private $fechaValoracion;
  159.     /**
  160.      * @ORM\Column(
  161.      *     type="float",
  162.      *     nullable=true,
  163.      *     options={
  164.      *         "default":"0.0",
  165.      *         "comment":"Comsión CRONO esta en gastos , pero se duplica fuera para tener mejor acceso a ella %"
  166.      *     }
  167.      * )
  168.      */
  169.     protected $comision;
  170.     /**
  171.      * @ORM\Column(type="float", nullable=true, precision=2, name="precio_coste")
  172.      */
  173.     protected $precioCoste;
  174.     /**
  175.      * @ORM\Column(
  176.      *     type="float",
  177.      *     nullable=true,
  178.      *     name="precio_coste_total",
  179.      *     precision=2,
  180.      *     options={
  181.      *         "default":"0.0",
  182.      *         "comment":"Autocalculado, cada vez que se añade/modifique un coste ó cambie su coste (Coste del Reloj + Costes Asociados)"
  183.      *     }
  184.      * )
  185.      */
  186.     protected $precioCosteTotal;
  187.     /**
  188.      * @ORM\Column(
  189.      *     type="string",
  190.      *     nullable=true,
  191.      *     name="genero",
  192.      *     enumType="App\Enum\GeneroRelojEnum",
  193.      *     options={"comment":"Opciones caballero, mujer, unisex"}
  194.      * )
  195.      */
  196.     private $genero;
  197.     /**
  198.      * @ORM\Column(
  199.      *     type="smallint",
  200.      *     length=1,
  201.      *     nullable=true,
  202.      *     name="estado_caja",
  203.      *     options={"comment":"valores a tomar de 1 a 5"}
  204.      * )
  205.      */
  206.     private $estadoCaja;
  207.     /**
  208.      * @ORM\Column(
  209.      *     type="smallint",
  210.      *     length=1,
  211.      *     nullable=true,
  212.      *     name="estado_cristal",
  213.      *     options={"comment":"valores a tomar de 1 a 5"}
  214.      * )
  215.      */
  216.     private $estadoCristal;
  217.     /**
  218.      * @ORM\Column(
  219.      *     type="smallint",
  220.      *     length=1,
  221.      *     nullable=true,
  222.      *     name="estado_dial",
  223.      *     options={"comment":"valores a tomar de 1 a 5"}
  224.      * )
  225.      */
  226.     private $estadoDial;
  227.     /**
  228.      * @ORM\Column(
  229.      *     type="smallint",
  230.      *     length=1,
  231.      *     nullable=true,
  232.      *     name="estado_agujas",
  233.      *     options={"comment":"valores a tomar de 1 a 5"}
  234.      * )
  235.      */
  236.     private $estadoAgujas;
  237.     /**
  238.      * @ORM\Column(
  239.      *     type="smallint",
  240.      *     length=1,
  241.      *     nullable=true,
  242.      *     name="estado_tapa",
  243.      *     options={"comment":"valores a tomar de 1 a 5"}
  244.      * )
  245.      */
  246.     private $estadoTapa;
  247.     /**
  248.      * @ORM\Column(
  249.      *     type="smallint",
  250.      *     length=1,
  251.      *     nullable=true,
  252.      *     name="estado_correa",
  253.      *     options={"comment":"valores a tomar de 1 a 5"}
  254.      * )
  255.      */
  256.     private $estadoCorrea;
  257.     /**
  258.      * @ORM\Column(
  259.      *     type="string",
  260.      *     nullable=true,
  261.      *     enumType="App\Enum\TipoEsferaIndiceEnum",
  262.      *     name="esfera_indice",
  263.      *     options={"comment":"Opciones Arabes, Romanos, Indices, Sin Indices"}
  264.      * )
  265.      */
  266.     private $esferaIndice;
  267.     /**
  268.      * @ORM\Column(type="string", nullable=true, name="esfera_color")
  269.      */
  270.     private $esferaColor;
  271.     /**
  272.      * @ORM\Column(type="boolean", nullable=true, name="esfera_joyas", options={"default":0})
  273.      */
  274.     private $esferaJoyas;
  275.     /**
  276.      * @ORM\Column(type="integer", nullable=true, name="caja_reloj_diametro", options={"comment":"medidas en mm"})
  277.      */
  278.     private $cajaRelojDiametro;
  279.     /**
  280.      * @ORM\Column(type="integer", nullable=true, name="caja_reloj_grosor", options={"comment":"Medidas en mm"})
  281.      */
  282.     private $cajaRelojGrosor;
  283.     /**
  284.      * @ORM\Column(type="integer", nullable=true, name="caja_reloj_resistencia_agua", options={"comment":"Unidad ATM"})
  285.      */
  286.     private $cajaRelojResistenciaAgua;
  287.     /**
  288.      * @ORM\Column(
  289.      *     type="string",
  290.      *     nullable=true,
  291.      *     enumType="App\Enum\TipoCristalEnum",
  292.      *     name="caja_reloj_cristal",
  293.      *     options={"comment":"Opciones Zafiro, Mineral, Plexiglass"}
  294.      * )
  295.      */
  296.     private $cajaRelojCristal;
  297.     /**
  298.      * @ORM\Column(type="string", nullable=true, name="pulsera_color")
  299.      */
  300.     private $pulseraColor;
  301.     /**
  302.      * @ORM\Column(
  303.      *     type="string",
  304.      *     nullable=true,
  305.      *     name="pulsera_cierre",
  306.      *     enumType="App\Enum\TipoCierreEnum",
  307.      *     options={"comment":"Opciones hebilla, deployante"}
  308.      * )
  309.      */
  310.     private $pulseraCierre;
  311.     /**
  312.      * @ORM\Column(type="integer", nullable=true, name="pulsera_ancho_caja")
  313.      */
  314.     private $pulseraAnchoCaja;
  315.     /**
  316.      * @ORM\Column(type="integer", nullable=true, name="pulsera_ancho_cierre")
  317.      */
  318.     private $pulseraAnchoCierre;
  319.     /**
  320.      * @ORM\Column(type="integer", nullable=true, name="pulsera_medida_munieca")
  321.      */
  322.     private $pulseraMedidaMunieca;
  323.     /**
  324.      * @ORM\Column(
  325.      *     type="string",
  326.      *     nullable=true,
  327.      *     enumType="App\Enum\CalibreEnum",
  328.      *     options={"comment":"Opciones automático, manual, cuarzo, solar"}
  329.      * )
  330.      */
  331.     private $calibre;
  332.     /**
  333.      * @ORM\Column(type="string", nullable=true, name="calibre_avanzado")
  334.      */
  335.     private $calibreAvanzado;
  336.     /**
  337.      * @ORM\Column(type="string", nullable=true, name="calibre_basico")
  338.      */
  339.     private $calibreBasico;
  340.     /**
  341.      * @ORM\Column(type="string", nullable=true, name="calibre_reserva_marcha")
  342.      */
  343.     private $calibreReservaMarcha;
  344.     /**
  345.      * @ORM\Column(type="string", nullable=true, name="calibre_numero_joyas")
  346.      */
  347.     private $calibreNumeroJoyas;
  348.     /**
  349.      * @ORM\Column(type="string", nullable=true, name="calibre_oscilacion")
  350.      */
  351.     private $calibreOscilacion;
  352.     /**
  353.      * @ORM\Column(type="string", nullable=true, name="calibre_amplitud")
  354.      */
  355.     private $calibreAmplitud;
  356.     /**
  357.      * @ORM\Column(type="string", nullable=true, name="calibre_marcha")
  358.      */
  359.     private $calibreMarcha;
  360.     /**
  361.      * @ORM\Column(
  362.      *     type="string",
  363.      *     nullable=true,
  364.      *     enumType="App\Enum\PiezaRepuestoEnum",
  365.      *     name="piezas_repuesto",
  366.      *     options={"comment":"Opciones Si, No, No lo sé"}
  367.      * )
  368.      */
  369.     private $piezasRepuesto;
  370.     /**
  371.      * @ORM\Column(type="text", nullable=true, name="piezas_repuesto_observaciones")
  372.      */
  373.     private $piezasRepuestoObservaciones;
  374.     /**
  375.      * @ORM\Column(
  376.      *     type="string",
  377.      *     nullable=true,
  378.      *     enumType="App\Enum\ServicioMantenimientoEnum",
  379.      *     name="servicio_mantenimiento",
  380.      *     options={"comment":"Opciones Si, oficial; Si, relojero propio; No; No lo se"}
  381.      * )
  382.      */
  383.     private $servicioMantenimiento;
  384.     /**
  385.      * @ORM\Column(
  386.      *     type="json",
  387.      *     nullable=true,
  388.      *     name="calibre_caracteristicas",
  389.      *     options={"comment":"Opciones de caracteristicas (selector multiple)"}
  390.      * )
  391.      */
  392.     private $calibreCaracteristicas;
  393.     /**
  394.      * @ORM\Column(
  395.      *     type="json",
  396.      *     nullable=true,
  397.      *     name="calibre_funciones",
  398.      *     options={"comment":"Opciones de caracteristicas (selector multiple)"}
  399.      * )
  400.      */
  401.     private $calibreFunciones;
  402.     /**
  403.      * @ORM\Column(type="float", nullable=true, precision=2, name="precio_min_venta")
  404.      */
  405.     protected $precioMinVenta;
  406.     /**
  407.      * @ORM\Column(type="float", nullable=true, precision=2, name="precio_promocion", options={"default":"0.0"})
  408.      */
  409.     protected $precioPromocion;
  410.     /**
  411.      * @ORM\Column(type="datetime", nullable=true, name="fecha_promocion")
  412.      */
  413.     protected $fechaPromocion;
  414.     /**
  415.      * @ORM\Column(type="float", nullable=true, precision=2, name="precio_oferta")
  416.      */
  417.     protected $precioOferta;
  418.     /**
  419.      * @deprecated Por cambios de funcionalidad
  420.      * @ORM\Column(type="boolean", nullable=true, precision=2, name="chrono24")
  421.      */
  422.     protected $chrono24;
  423.     /**
  424.      * @ORM\Column(type="float", nullable=true, precision=2, name="precio_pagar")
  425.      */
  426.     protected $precioPagar;
  427.     /**
  428.      * @ORM\Column(type="float", nullable=true, precision=2, name="precio_compra")
  429.      */
  430.     protected $precioCompra;
  431.     /**
  432.      * @ORM\Column(type="datetime", nullable=true, name="fecha_compra")
  433.      */
  434.     protected $fechaCompra;
  435.     /**
  436.      * @ORM\Column(type="float", nullable=true, precision=2)
  437.      */
  438.     protected $precioVenta;
  439.     /**
  440.      * @ORM\Column(type="datetime", nullable=true, name="fecha_venta")
  441.      */
  442.     protected $fechaVenta;
  443.     /**
  444.      * @ORM\Column(type="float", nullable=true, precision=2)
  445.      */
  446.     protected $precioVentaTotal;
  447.     /**
  448.      * @ORM\Column(type="float", nullable=true, precision=0, name="margen_minimo")
  449.      */
  450.     protected $margenMinimo;
  451.     /**
  452.      * @ORM\Column(type="float", nullable=true, precision=0, name="margen_deseado")
  453.      */
  454.     protected $margenDeseado;
  455.     /**
  456.      * @ORM\Column(type="float", nullable=true, precision=2)
  457.      */
  458.     private $recompra;
  459.     /**
  460.      * @ORM\Column(type="string", nullable=true)
  461.      */
  462.     private $garantia;
  463.     /**
  464.      * @ORM\Column(type="string", nullable=true)
  465.      */
  466.     private $descripcion;
  467.     /**
  468.      * @ORM\Column(type="text", nullable=true, name="descripcion_detallada")
  469.      */
  470.     private $descripcionDetallada;
  471.     /**
  472.      * @ORM\Column(type="text", nullable=true)
  473.      */
  474.     private $condiciones;
  475.     /**
  476.      * @ORM\Column(type="text", nullable=true, name="anuncio_es")
  477.      */
  478.     private $anuncioES;
  479.     /**
  480.      * @ORM\Column(type="text", nullable=true, name="anuncio_en")
  481.      */
  482.     private $anuncioEN;
  483.     /**
  484.      * @ORM\Column(
  485.      *     type="integer",
  486.      *     nullable=true,
  487.      *     name="tiempo_en_venta",
  488.      *     options={"comment":"Diff entre Fecha Venta y 1º Estado de Anuncio"}
  489.      * )
  490.      */
  491.     private $tiempoEnVenta;
  492.     /**
  493.      * @ORM\Column(
  494.      *     type="integer",
  495.      *     nullable=true,
  496.      *     name="tiempo_en_stock",
  497.      *     options={"comment":"Diff entre Fecha Venta y Fecha Compra"}
  498.      * )
  499.      */
  500.     private $tiempoEnStock;
  501.     /**
  502.      * @ORM\Column(type="datetime", nullable=true, name="fecha_recepcion")
  503.      */
  504.     private $fechaRecepcion;
  505.     /**
  506.      * @ORM\Column(
  507.      *     type="float",
  508.      *     nullable=true,
  509.      *     precision=0,
  510.      *     name="margen_promocion",
  511.      *     options={"default":"0.0","comment":"%"}
  512.      * )
  513.      */
  514.     protected $margenPromocion;
  515.     /**
  516.      * @ORM\Column(
  517.      *     type="float",
  518.      *     nullable=true,
  519.      *     precision=0,
  520.      *     name="margen_bruto",
  521.      *     options={"default":"0.0","comment":"%"}
  522.      * )
  523.      */
  524.     protected $margenBruto;
  525.     /**
  526.      * @ORM\Column(type="float", nullable=true, name="margen_neto", precision=2,
  527.      *     options={"default":"0.0","comment":"%"})
  528.      */
  529.     protected $margenNeto;
  530.     /**
  531.      * @ORM\Column(type="boolean", nullable=false, options={"default":0,"comment":"Relojes comprados"})
  532.      */
  533.     protected $stock;
  534.     /**
  535.      * @ORM\Column(type="boolean", nullable=true, options={"default":0,"comment":"Relojes en Gestión de Venta"})
  536.      */
  537.     protected $custodia;
  538.     /**
  539.      * @ORM\Column(type="float", nullable=true, name="tiempo_venta", precision=2,
  540.      *     options={"default":"0.0","comment":"%"})
  541.      */
  542.     protected $tiempoVenta;
  543.     /**
  544.      * @ORM\Column(type="datetime", nullable=true, name="fecha_anuncio", options={"comment":"Fecha primer anuncio"})
  545.      */
  546.     private $fechaAnuncio;
  547.     /**
  548.      * @ORM\Column(type="text", nullable=true)
  549.      */
  550.     protected $comentario;
  551.     /**
  552.      * @ORM\Column(
  553.      *     type="string",
  554.      *     unique=true,
  555.      *     nullable=true,
  556.      *     name="token_access",
  557.      *     options={"comment":"Token de acceso a la información del reloj"}
  558.      * )
  559.      */
  560.     protected $tokenAccess;
  561.     /**
  562.      * @ORM\Column(
  563.      *     type="boolean",
  564.      *     nullable=true,
  565.      *     name="en_promocion",
  566.      *     options={"default":0,"comment":"Cuando la Estado Operacion es Confirmada"}
  567.      * )
  568.      */
  569.     protected $enPromocion;
  570.     /**
  571.      * @ORM\Column(
  572.      *     type="boolean",
  573.      *     nullable=true,
  574.      *     name="en_servicio",
  575.      *     options={"default":0,"comment":"Relojes Recepcionados y que se encuentren en una Ubicación tipo Proveedor"}
  576.      * )
  577.      */
  578.     protected $enServicio;
  579.     /**
  580.      * @ORM\Column(
  581.      *     type="boolean",
  582.      *     nullable=true,
  583.      *     name="sin_anunciar",
  584.      *     options={"default":0,"comment":"Relojes Estado Listo y no han sido promocionados"}
  585.      * )
  586.      */
  587.     protected $sinAnunciar;
  588.     /**
  589.      * @ORM\Column(type="boolean", nullable=true, options={"default":0})
  590.      */
  591.     protected $enVenta;
  592.     /**
  593.      * @ORM\Column(
  594.      *     type="boolean",
  595.      *     nullable=true,
  596.      *     name="tipo_bloqueo",
  597.      *     options={"comment":"Valores a tomar RM(true) ó RI(false) ó NULL"}
  598.      * )
  599.      */
  600.     protected $tipoBloqueo;
  601.     /**
  602.      * @ORM\Column(type="boolean", nullable=true)
  603.      */
  604.     protected $exportacion;
  605.     /**
  606.      * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  607.      */
  608.     protected $deletedAt;
  609.     /**
  610.      * @ORM\Column(type="datetime", nullable=false, name="updated_at", options={"default":"2022-01-01 00:00:00"})
  611.      * @Gedmo\Timestampable(on="update")
  612.      */
  613.     protected $updatedAt;
  614.     /**
  615.      * @ORM\Column(type="datetime", nullable=false, name="created_at", options={"default":"2022-01-01 00:00:00"})
  616.      * @Gedmo\Timestampable(on="create")
  617.      */
  618.     protected $createdAt;
  619.     /**
  620.      * @ORM\OneToOne(targetEntity=\App\Entity\ValoracionesRelojesSinStock::class, mappedBy="relojInventario")
  621.      */
  622.     private $valoracionReloj;
  623.     /**
  624.      * @ORM\OneToMany(targetEntity=\App\Entity\DetalleCompra::class, mappedBy="reloj")
  625.      */
  626.     protected $detalleCompra;
  627.     /**
  628.      * @ORM\OneToMany(targetEntity=\App\Entity\DetalleVenta::class, mappedBy="reloj")
  629.      */
  630.     protected $detalleVenta;
  631.     /**
  632.      * @ORM\OneToOne(targetEntity=\App\Entity\RegistroPolicial::class, mappedBy="reloj")
  633.      */
  634.     protected $registroPolicial;
  635.     /*
  636.      * @ORM\OneToOne(targetEntity=\App\Entity\ActividadAbstract::class, mappedBy="reloj")
  637.      */
  638.     private $actividad;
  639.     /**
  640.      * @ORM\OneToOne(targetEntity=\App\Entity\Promocion::class, mappedBy="reloj")
  641.      */
  642.     protected $promociones;
  643.     /**
  644.      * @ORM\OneToMany(targetEntity="App\Entity\Gasto", mappedBy="reloj")
  645.      */
  646.     protected $gastos;
  647.     /**
  648.      * @ORM\OneToMany(targetEntity="App\Entity\Trazabilidad", mappedBy="reloj")
  649.      */
  650.     protected $trazas;
  651.     /**
  652.      * @ORM\OneToMany(targetEntity="App\Entity\ValoracionesRelojes", mappedBy="reloj", cascade={"persist"})
  653.      */
  654.     protected $valoracionesRelojes;
  655.     /**
  656.      * @ORM\ManyToOne(targetEntity="App\Entity\EstadoReloj", inversedBy="relojes")
  657.      * @ORM\JoinColumn(name="estado_reloj_id", referencedColumnName="id", nullable=true)
  658.      */
  659.     protected $estado;
  660.     /**
  661.      * @ORM\ManyToOne(targetEntity="App\Entity\Marca", inversedBy="relojes")
  662.      * @ORM\JoinColumn(name="marca_id", referencedColumnName="id")
  663.      */
  664.     protected $marca;
  665.     /**
  666.      * @ORM\ManyToOne(targetEntity="App\Entity\EstadoAspecto", inversedBy="relojes")
  667.      * @ORM\JoinColumn(name="estado_aspecto_id", referencedColumnName="id")
  668.      */
  669.     protected $aspecto;
  670.     /**
  671.      * @ORM\ManyToOne(targetEntity="App\Entity\EstadoCheck", inversedBy="relojes")
  672.      * @ORM\JoinColumn(name="estado_check_id", referencedColumnName="id")
  673.      */
  674.     protected $check;
  675.     /*
  676.      * @ORM\OneToOne(targetEntity=\App\Entity\Operacion::class, inversedBy="relojGestion")
  677.      * @ORM\JoinColumn(name="operacion_gestion_id", referencedColumnName="id", unique=true)
  678.      */
  679.     /**
  680.      * @ORM\JoinColumn(name="operacion_gestion_id", referencedColumnName="id")
  681.      * @ORM\ManyToOne(targetEntity=\App\Entity\Operacion::class, inversedBy="relojesGestion")
  682.      */
  683.     private $operacionGestion;
  684.     /**
  685.      * @ORM\JoinColumn(name="operacion_venta_id", referencedColumnName="id")
  686.      * @ORM\ManyToOne(targetEntity=\App\Entity\Operacion::class, inversedBy="relojesVenta")
  687.      */
  688.     private $operacionVenta;
  689.     /**
  690.      * @ORM\JoinColumn(name="operacion_compra_id", referencedColumnName="id")
  691.      * @ORM\ManyToOne(targetEntity=\App\Entity\Operacion::class, inversedBy="relojesCompra")
  692.      */
  693.     private $operacionCompra;
  694.     /**
  695.      * @ORM\ManyToOne(targetEntity=\App\Entity\Valoracion::class, inversedBy="relojes")
  696.      * @ORM\JoinColumn(name="valoracion_id", referencedColumnName="id")
  697.      */
  698.     private $valoracion;
  699.     /**
  700.      * @ORM\ManyToOne(targetEntity=\App\Entity\Empresa::class, inversedBy="relojes")
  701.      * @ORM\JoinColumn(name="empresa_id", referencedColumnName="id", nullable=false)
  702.      */
  703.     private $empresa;
  704.     /**
  705.      * @ORM\ManyToOne(targetEntity=\App\Entity\Material::class, inversedBy="relojesCajaRelojMaterial")
  706.      * @ORM\JoinColumn(name="caja_reloj_material_id", referencedColumnName="id")
  707.      */
  708.     private $cajaRelojMaterial;
  709.     /**
  710.      * @ORM\ManyToOne(targetEntity=\App\Entity\Material::class, inversedBy="relojesCajaRelojMaterialBisel")
  711.      * @ORM\JoinColumn(name="caja_reloj_bisel_material_id", referencedColumnName="id")
  712.      */
  713.     private $cajaRelojMaterialBisel;
  714.     /**
  715.      * @ORM\ManyToOne(targetEntity=\App\Entity\Material::class, inversedBy="relojesPulseraMaterial")
  716.      * @ORM\JoinColumn(name="pulsera_material_id", referencedColumnName="id")
  717.      */
  718.     private $pulseraMaterial;
  719.     /**
  720.      * @ORM\ManyToOne(targetEntity=\App\Entity\Material::class, inversedBy="relojesPulseraMaterialCierre")
  721.      * @ORM\JoinColumn(name="pulsera_material_cierre_id", referencedColumnName="id")
  722.      */
  723.     private $pulseraMaterialCierre;
  724.     /**
  725.      * @ORM\OneToOne(targetEntity=\App\Entity\ActividadCompra::class, mappedBy="reloj")
  726.      */
  727.     private $actividadCompra;
  728.     /**
  729.      * @ORM\OneToOne(targetEntity=\App\Entity\ActividadVenta::class, mappedBy="reloj")
  730.      */
  731.     private $actividadVenta;
  732.     private $fechaStr;
  733.     public function __construct()
  734.     {
  735.         $this->reservado false;
  736.         $this->papeles false;
  737.         $this->caja false;
  738.         $this->stock false;
  739.         $this->custodia false;
  740.         $this->gastos = new ArrayCollection();
  741.         $this->trazas = new ArrayCollection();
  742.         $this->valoracionesRelojes = new ArrayCollection();
  743.         $this->detalleVenta = new ArrayCollection();
  744.         $this->detalleCompra = new ArrayCollection();
  745.     }
  746.     public function __toString(): string
  747.     {
  748.         return (string)($this->getCodigo() ?? $this->getIDperseo());
  749.     }
  750.     public function getId(): ?string
  751.     {
  752.         return $this->id;
  753.     }
  754.     public function getIDperseo(): ?string
  755.     {
  756.         return $this->IDperseo;
  757.     }
  758.     public function setIDperseo(string $IDperseo): self
  759.     {
  760.         $this->IDperseo $IDperseo;
  761.         return $this;
  762.     }
  763.     public function getRegimen(): ?string
  764.     {
  765.         return $this->regimen;
  766.     }
  767.     public function setRegimen(?string $regimen): self
  768.     {
  769.         $this->regimen $regimen;
  770.         return $this;
  771.     }
  772.     public function getFoto(): ?string
  773.     {
  774.         return $this->foto;
  775.     }
  776.     public function setFoto(?string $foto): self
  777.     {
  778.         $this->foto $foto;
  779.         return $this;
  780.     }
  781.     public function getFotoFile(): ?File
  782.     {
  783.         return $this->fotoFile;
  784.     }
  785.     public function setFotoFile(?File $fotoFile): self
  786.     {
  787.         $this->fotoFile $fotoFile;
  788.         if ($fotoFile) {
  789.             // if 'updatedAt' is not defined in your entity, use another property
  790.             $this->setUpdatedAt(new DateTime('now'));
  791.         }
  792.         return $this;
  793.     }
  794.     public function getModelo1(): ?string
  795.     {
  796.         return $this->modelo1;
  797.     }
  798.     public function setModelo1(?string $modelo1): self
  799.     {
  800.         $this->modelo1 $modelo1;
  801.         return $this;
  802.     }
  803.     public function getModelo2(): ?string
  804.     {
  805.         return $this->modelo2;
  806.     }
  807.     public function setModelo2(?string $modelo2): self
  808.     {
  809.         $this->modelo2 $modelo2;
  810.         return $this;
  811.     }
  812.     public function getRef1(): ?string
  813.     {
  814.         return $this->ref1;
  815.     }
  816.     public function setRef1(?string $ref1): self
  817.     {
  818.         $this->ref1 $ref1;
  819.         return $this;
  820.     }
  821.     public function getRef2(): ?string
  822.     {
  823.         return $this->ref2;
  824.     }
  825.     public function setRef2(?string $ref2): self
  826.     {
  827.         $this->ref2 $ref2;
  828.         return $this;
  829.     }
  830.     public function getSerie(): ?string
  831.     {
  832.         return $this->serie;
  833.     }
  834.     public function setSerie(?string $serie): self
  835.     {
  836.         $this->serie $serie;
  837.         return $this;
  838.     }
  839.     public function getFecha(): ?DateTimeInterface
  840.     {
  841.         return $this->fecha;
  842.     }
  843.     public function setFecha(?DateTimeInterface $fecha): self
  844.     {
  845.         $this->fecha $fecha;
  846.         return $this;
  847.     }
  848.     public function isCaja(): ?bool
  849.     {
  850.         return $this->caja;
  851.     }
  852.     public function getCaja(): ?bool
  853.     {
  854.         return $this->caja;
  855.     }
  856.     public function setCaja(bool $caja): self
  857.     {
  858.         $this->caja $caja;
  859.         return $this;
  860.     }
  861.     public function isPapeles(): ?bool
  862.     {
  863.         return $this->papeles;
  864.     }
  865.     public function getPapeles(): ?bool
  866.     {
  867.         return $this->papeles;
  868.     }
  869.     public function setPapeles(bool $papeles): self
  870.     {
  871.         $this->papeles $papeles;
  872.         return $this;
  873.     }
  874.     public function getOtros(): ?string
  875.     {
  876.         return $this->otros;
  877.     }
  878.     public function setOtros(?string $otros): self
  879.     {
  880.         $this->otros $otros;
  881.         return $this;
  882.     }
  883.     public function getITP(): ?float
  884.     {
  885.         return $this->ITP;
  886.     }
  887.     public function setITP(?float $ITP): self
  888.     {
  889.         $this->ITP $ITP;
  890.         return $this;
  891.     }
  892.     public function getComision(): ?float
  893.     {
  894.         return $this->comision;
  895.     }
  896.     public function setComision(?float $comision): self
  897.     {
  898.         $this->comision $comision;
  899.         return $this;
  900.     }
  901.     public function getPrecioCoste(): ?float
  902.     {
  903.         return $this->precioCoste;
  904.     }
  905.     public function setPrecioCoste(?float $precioCoste): self
  906.     {
  907.         $this->precioCoste $precioCoste;
  908.         return $this;
  909.     }
  910.     public function getPrecioCosteTotal(): ?float
  911.     {
  912.         return $this->precioCosteTotal;
  913.     }
  914.     public function setPrecioCosteTotal(?float $precioCosteTotal): self
  915.     {
  916.         $this->precioCosteTotal $precioCosteTotal;
  917.         return $this;
  918.     }
  919.     public function getPrecioMinVenta(): ?float
  920.     {
  921.         return $this->precioMinVenta;
  922.     }
  923.     public function setPrecioMinVenta(?float $precioMinVenta): self
  924.     {
  925.         $this->precioMinVenta $precioMinVenta;
  926.         return $this;
  927.     }
  928.     public function getPrecioPromocion(): ?float
  929.     {
  930.         return $this->precioPromocion;
  931.     }
  932.     public function setPrecioPromocion(?float $precioPromocion): self
  933.     {
  934.         $this->precioPromocion $precioPromocion;
  935.         return $this;
  936.     }
  937.     public function getPrecioOferta(): ?float
  938.     {
  939.         return $this->precioOferta;
  940.     }
  941.     public function setPrecioOferta(?float $precioOferta): self
  942.     {
  943.         $this->precioOferta $precioOferta;
  944.         return $this;
  945.     }
  946.     public function getPrecioPagar(): ?float
  947.     {
  948.         return $this->precioPagar;
  949.     }
  950.     public function setPrecioPagar(?float $precioPagar): self
  951.     {
  952.         $this->precioPagar $precioPagar;
  953.         return $this;
  954.     }
  955.     public function getPrecioVenta(): ?float
  956.     {
  957.         return $this->precioVenta;
  958.     }
  959.     public function setPrecioVenta(?float $precioVenta): self
  960.     {
  961.         $this->precioVenta $precioVenta;
  962.         return $this;
  963.     }
  964.     public function getPrecioVentaTotal(): ?float
  965.     {
  966.         return $this->precioVentaTotal;
  967.     }
  968.     public function setPrecioVentaTotal(?float $precioVentaTotal): self
  969.     {
  970.         $this->precioVentaTotal $precioVentaTotal;
  971.         return $this;
  972.     }
  973.     public function getMargenMinimo(): ?float
  974.     {
  975.         return $this->margenMinimo;
  976.     }
  977.     public function setMargenMinimo(?float $margenMinimo): self
  978.     {
  979.         $this->margenMinimo $margenMinimo;
  980.         return $this;
  981.     }
  982.     public function getMargenDeseado(): ?float
  983.     {
  984.         return $this->margenDeseado;
  985.     }
  986.     public function setMargenDeseado(?float $margenDeseado): self
  987.     {
  988.         $this->margenDeseado $margenDeseado;
  989.         return $this;
  990.     }
  991.     public function getMargenPromocion(): ?float
  992.     {
  993.         return $this->margenPromocion;
  994.     }
  995.     public function setMargenPromocion(?float $margenPromocion): self
  996.     {
  997.         $this->margenPromocion $margenPromocion;
  998.         return $this;
  999.     }
  1000.     public function getMargenBruto(): ?float
  1001.     {
  1002.         return $this->margenBruto;
  1003.     }
  1004.     public function setMargenBruto(?float $margenBruto): self
  1005.     {
  1006.         $this->margenBruto $margenBruto;
  1007.         return $this;
  1008.     }
  1009.     public function getStock(): ?bool
  1010.     {
  1011.         return $this->stock;
  1012.     }
  1013.     public function setStock(bool $stock): self
  1014.     {
  1015.         $this->stock $stock;
  1016.         return $this;
  1017.     }
  1018.     public function getComentario(): ?string
  1019.     {
  1020.         return $this->comentario;
  1021.     }
  1022.     public function setComentario(?string $comentario): self
  1023.     {
  1024.         $this->comentario $comentario;
  1025.         return $this;
  1026.     }
  1027.     public function getReservado(): ?bool
  1028.     {
  1029.         return $this->reservado;
  1030.     }
  1031.     public function setReservado(bool $reservado): self
  1032.     {
  1033.         $this->reservado $reservado;
  1034.         return $this;
  1035.     }
  1036.     public function getTokenAccess(): ?string
  1037.     {
  1038.         return $this->tokenAccess;
  1039.     }
  1040.     public function setTokenAccess(?string $tokenAccess): self
  1041.     {
  1042.         $this->tokenAccess $tokenAccess;
  1043.         return $this;
  1044.     }
  1045.     public function getTipoBloqueo(): ?string
  1046.     {
  1047.         return $this->tipoBloqueo;
  1048.     }
  1049.     public function setTipoBloqueo(?string $tipoBloqueo): self
  1050.     {
  1051.         $this->tipoBloqueo $tipoBloqueo;
  1052.         return $this;
  1053.     }
  1054.     public function getExportacionStr():string
  1055.     {
  1056.         return $this->isExportacion() ? 'Exportacion' 'Europa';
  1057.     }
  1058.     public function getExportacion(): ?bool
  1059.     {
  1060.         return $this->exportacion;
  1061.     }
  1062.     public function setExportacion(?bool $exportacion): self
  1063.     {
  1064.         $this->exportacion $exportacion;
  1065.         return $this;
  1066.     }
  1067.     public function getDeletedAt(): ?DateTimeInterface
  1068.     {
  1069.         return $this->deletedAt;
  1070.     }
  1071.     public function setDeletedAt(?DateTimeInterface $deletedAt): self
  1072.     {
  1073.         $this->deletedAt $deletedAt;
  1074.         return $this;
  1075.     }
  1076.     public function getUpdatedAt(): ?DateTimeInterface
  1077.     {
  1078.         return $this->updatedAt;
  1079.     }
  1080.     public function setUpdatedAt(DateTimeInterface $updatedAt): self
  1081.     {
  1082.         $this->updatedAt $updatedAt;
  1083.         return $this;
  1084.     }
  1085.     public function getCreatedAt(): ?DateTimeInterface
  1086.     {
  1087.         return $this->createdAt;
  1088.     }
  1089.     public function setCreatedAt(DateTimeInterface $createdAt): self
  1090.     {
  1091.         $this->createdAt $createdAt;
  1092.         return $this;
  1093.     }
  1094.     public function getRegistroPolicial(): ?RegistroPolicial
  1095.     {
  1096.         return $this->registroPolicial;
  1097.     }
  1098.     public function setRegistroPolicial(?RegistroPolicial $registroPolicial): self
  1099.     {
  1100.         // unset the owning side of the relation if necessary
  1101.         if ($registroPolicial === null && $this->registroPolicial !== null) {
  1102.             $this->registroPolicial->setReloj(null);
  1103.         }
  1104.         // set the owning side of the relation if necessary
  1105.         if ($registroPolicial !== null && $registroPolicial->getReloj() !== $this) {
  1106.             $registroPolicial->setReloj($this);
  1107.         }
  1108.         $this->registroPolicial $registroPolicial;
  1109.         return $this;
  1110.     }
  1111.     /**
  1112.      * @return Collection|Gasto[]
  1113.      */
  1114.     public function getGastos(): Collection
  1115.     {
  1116.         return $this->gastos;
  1117.     }
  1118.     public function addGasto(Gasto $gasto): self
  1119.     {
  1120.         if (!$this->gastos->contains($gasto)) {
  1121.             $this->gastos[] = $gasto;
  1122.             $gasto->setReloj($this);
  1123.         }
  1124.         return $this;
  1125.     }
  1126.     public function removeGasto(Gasto $gasto): self
  1127.     {
  1128.         if ($this->gastos->removeElement($gasto)) {
  1129.             // set the owning side to null (unless already changed)
  1130.             if ($gasto->getReloj() === $this) {
  1131.                 $gasto->setReloj(null);
  1132.             }
  1133.         }
  1134.         return $this;
  1135.     }
  1136.     /**
  1137.      * @return Collection|Trazabilidad[]
  1138.      */
  1139.     public function getTrazas(): Collection
  1140.     {
  1141.         return $this->trazas;
  1142.     }
  1143.     public function addTraza(Trazabilidad $traza): self
  1144.     {
  1145.         if (!$this->trazas->contains($traza)) {
  1146.             $this->trazas[] = $traza;
  1147.             $traza->setReloj($this);
  1148.         }
  1149.         return $this;
  1150.     }
  1151.     public function removeTraza(Trazabilidad $traza): self
  1152.     {
  1153.         if ($this->trazas->removeElement($traza)) {
  1154.             // set the owning side to null (unless already changed)
  1155.             if ($traza->getReloj() === $this) {
  1156.                 $traza->setReloj(null);
  1157.             }
  1158.         }
  1159.         return $this;
  1160.     }
  1161.     public function getEstado(): ?EstadoReloj
  1162.     {
  1163.         return $this->estado;
  1164.     }
  1165.     public function setEstado(?EstadoReloj $estado): self
  1166.     {
  1167.         $this->estado $estado;
  1168.         return $this;
  1169.     }
  1170.     public function getMarca(): ?Marca
  1171.     {
  1172.         return $this->marca;
  1173.     }
  1174.     public function setMarca(?Marca $marca): self
  1175.     {
  1176.         $this->marca $marca;
  1177.         return $this;
  1178.     }
  1179.     /**
  1180.      * @return Collection|ValoracionesRelojes[]
  1181.      */
  1182.     public function getValoracionesRelojes(): Collection
  1183.     {
  1184.         return $this->valoracionesRelojes;
  1185.     }
  1186.     public function addValoracionesReloje(ValoracionesRelojes $valoracionesReloje): self
  1187.     {
  1188.         if (!$this->valoracionesRelojes->contains($valoracionesReloje)) {
  1189.             $this->valoracionesRelojes[] = $valoracionesReloje;
  1190.             $valoracionesReloje->setReloj($this);
  1191.         }
  1192.         return $this;
  1193.     }
  1194.     public function removeValoracionesReloje(ValoracionesRelojes $valoracionesReloje): self
  1195.     {
  1196.         if ($this->valoracionesRelojes->removeElement($valoracionesReloje)) {
  1197.             // set the owning side to null (unless already changed)
  1198.             if ($valoracionesReloje->getReloj() === $this) {
  1199.                 $valoracionesReloje->setReloj(null);
  1200.             }
  1201.         }
  1202.         return $this;
  1203.     }
  1204.     public function isStock(): ?bool
  1205.     {
  1206.         return $this->stock;
  1207.     }
  1208.     public function isReservado(): ?bool
  1209.     {
  1210.         return $this->reservado;
  1211.     }
  1212.     public function isExportacion(): ?bool
  1213.     {
  1214.         return $this->exportacion;
  1215.     }
  1216.     public function getFechaPromocion(): ?DateTimeInterface
  1217.     {
  1218.         return $this->fechaPromocion;
  1219.     }
  1220.     public function setFechaPromocion(?DateTimeInterface $fechaPromocion): self
  1221.     {
  1222.         $this->fechaPromocion $fechaPromocion;
  1223.         return $this;
  1224.     }
  1225.     public function getFechaVenta(): ?DateTimeInterface
  1226.     {
  1227.         return $this->fechaVenta;
  1228.     }
  1229.     public function setFechaVenta(?DateTimeInterface $fechaVenta): self
  1230.     {
  1231.         $this->fechaVenta $fechaVenta;
  1232.         return $this;
  1233.     }
  1234.     public function getMargenNeto(): ?float
  1235.     {
  1236.         return $this->margenNeto;
  1237.     }
  1238.     public function setMargenNeto(?float $margenNeto): self
  1239.     {
  1240.         $this->margenNeto $margenNeto;
  1241.         return $this;
  1242.     }
  1243.     public function isCustodia(): ?bool
  1244.     {
  1245.         return $this->custodia;
  1246.     }
  1247.     public function setCustodia(bool $custodia): self
  1248.     {
  1249.         $this->custodia $custodia;
  1250.         return $this;
  1251.     }
  1252.     public function getTiempoVenta(): ?float
  1253.     {
  1254.         return $this->tiempoVenta;
  1255.     }
  1256.     public function setTiempoVenta(?float $tiempoVenta): self
  1257.     {
  1258.         $this->tiempoVenta $tiempoVenta;
  1259.         return $this;
  1260.     }
  1261.     public function isEnPromocion(): ?bool
  1262.     {
  1263.         return $this->enPromocion;
  1264.     }
  1265.     public function setEnPromocion(?bool $enPromocion): self
  1266.     {
  1267.         $this->enPromocion $enPromocion;
  1268.         return $this;
  1269.     }
  1270.     public function isEnServicio(): ?bool
  1271.     {
  1272.         return $this->enServicio;
  1273.     }
  1274.     public function setEnServicio(?bool $enServicio): self
  1275.     {
  1276.         $this->enServicio $enServicio;
  1277.         return $this;
  1278.     }
  1279.     public function isTipoBloqueo(): ?bool
  1280.     {
  1281.         return $this->tipoBloqueo;
  1282.     }
  1283.     public function getAspecto(): ?EstadoAspecto
  1284.     {
  1285.         return $this->aspecto;
  1286.     }
  1287.     public function setAspecto(?EstadoAspecto $aspecto): self
  1288.     {
  1289.         $this->aspecto $aspecto;
  1290.         return $this;
  1291.     }
  1292.     public function getCheck(): ?EstadoCheck
  1293.     {
  1294.         return $this->check;
  1295.     }
  1296.     public function setCheck(?EstadoCheck $check): self
  1297.     {
  1298.         $this->check $check;
  1299.         return $this;
  1300.     }
  1301.     public function isSinAnunciar(): ?bool
  1302.     {
  1303.         return $this->sinAnunciar;
  1304.     }
  1305.     public function setSinAnunciar(?bool $sinAnunciar): self
  1306.     {
  1307.         $this->sinAnunciar $sinAnunciar;
  1308.         return $this;
  1309.     }
  1310.     public function isEnVenta(): ?bool
  1311.     {
  1312.         return $this->enVenta;
  1313.     }
  1314.     public function setEnVenta(?bool $enVenta): self
  1315.     {
  1316.         $this->enVenta $enVenta;
  1317.         return $this;
  1318.     }
  1319.     public function getUrlImage():string
  1320.     {
  1321.         /* TODO cogerlo de la configuracion vich */
  1322.         return '/uploads/reloj/'.$this->getId().'/'.$this->getFoto();
  1323.     }
  1324.     public function getFechaCompra(): ?DateTimeInterface
  1325.     {
  1326.         return $this->fechaCompra;
  1327.     }
  1328.     public function setFechaCompra(?DateTimeInterface $fechaCompra): static
  1329.     {
  1330.         $this->fechaCompra $fechaCompra;
  1331.         return $this;
  1332.     }
  1333.     public function getPromociones(): ?Promocion
  1334.     {
  1335.         return $this->promociones;
  1336.     }
  1337.     public function setPromociones(?Promocion $promociones): static
  1338.     {
  1339.         // unset the owning side of the relation if necessary
  1340.         if ($promociones === null && $this->promociones !== null) {
  1341.             $this->promociones->setReloj(null);
  1342.         }
  1343.         // set the owning side of the relation if necessary
  1344.         if ($promociones !== null && $promociones->getReloj() !== $this) {
  1345.             $promociones->setReloj($this);
  1346.         }
  1347.         $this->promociones $promociones;
  1348.         return $this;
  1349.     }
  1350.     public function getCodigo(): ?string
  1351.     {
  1352.         return $this->codigo;
  1353.     }
  1354.     public function setCodigo(string $codigo): static
  1355.     {
  1356.         $this->codigo $codigo;
  1357.         return $this;
  1358.     }
  1359.     public function getModelos(): ?string
  1360.     {
  1361.         return implode(' ', [$this->getModelo1(), $this->getModelo2()]);
  1362.     }
  1363.     /*public function setModelos(?string $modelos): static
  1364.     {
  1365.         $modelosArray = explode(',', $modelos);
  1366.         $this->setModelo1(@$modelosArray[0]);
  1367.         $this->setModelo2(@$modelosArray[1]);
  1368.         return $this;
  1369.     }*/
  1370.     public function getRefs(): ?string
  1371.     {
  1372.         return implode('', [$this->getRef1(), $this->getRef2()]);
  1373.     }
  1374.     /*public function setRefs(?string $refs): static
  1375.     {
  1376.         $refsArray = explode(',', $refs);
  1377.         $this->setRef1(@$refsArray[0]);
  1378.         $this->setRef2(@$refsArray[1]);
  1379.         return $this;
  1380.     }*/
  1381.     public function getActividad(): ?ActividadAbstract
  1382.     {
  1383.         return $this->actividad;
  1384.     }
  1385.     public function setActividad(?ActividadAbstract $actividad): static
  1386.     {
  1387.         // unset the owning side of the relation if necessary
  1388.         if ($actividad === null && $this->actividad !== null) {
  1389.             $this->actividad->setReloj(null);
  1390.         }
  1391.         // set the owning side of the relation if necessary
  1392.         if ($actividad !== null && $actividad->getReloj() !== $this) {
  1393.             $actividad->setReloj($this);
  1394.         }
  1395.         $this->actividad $actividad;
  1396.         return $this;
  1397.     }
  1398.     public function getFotoValoracion(): ?string
  1399.     {
  1400.         return $this->fotoValoracion;
  1401.     }
  1402.     public function setFotoValoracion(?string $fotoValoracion): static
  1403.     {
  1404.         $this->fotoValoracion $fotoValoracion;
  1405.         return $this;
  1406.     }
  1407.     public function getFotoValoracionFile(): ?File
  1408.     {
  1409.         return $this->fotoValoracionFile;
  1410.     }
  1411.     public function setFotoValoracionFile(?File $fotoValoracionFile): self
  1412.     {
  1413.         $this->fotoValoracionFile $fotoValoracionFile;
  1414.         if ($fotoValoracionFile) {
  1415.             // if 'updatedAt' is not defined in your entity, use another property
  1416.             $this->setUpdatedAt(new DateTime('now'));
  1417.         }
  1418.         return $this;
  1419.     }
  1420.     public function getFotoSet(): ?string
  1421.     {
  1422.         return $this->fotoSet;
  1423.     }
  1424.     public function setFotoSet(?string $fotoSet): static
  1425.     {
  1426.         $this->fotoSet $fotoSet;
  1427.         return $this;
  1428.     }
  1429.     public function getFotoSetFile(): ?File
  1430.     {
  1431.         return $this->fotoSetFile;
  1432.     }
  1433.     public function setFotoSetFile(?File $fotoSetFile): self
  1434.     {
  1435.         $this->fotoSetFile $fotoSetFile;
  1436.         if ($fotoSetFile) {
  1437.             // if 'updatedAt' is not defined in your entity, use another property
  1438.             $this->setUpdatedAt(new DateTime('now'));
  1439.         }
  1440.         return $this;
  1441.     }
  1442.     public function getFotoCrono(): ?string
  1443.     {
  1444.         return $this->fotoCrono;
  1445.     }
  1446.     public function setFotoCrono(?string $fotoCrono): static
  1447.     {
  1448.         $this->fotoCrono $fotoCrono;
  1449.         return $this;
  1450.     }
  1451.     public function getFotoCronoFile(): ?File
  1452.     {
  1453.         return $this->fotoCronoFile;
  1454.     }
  1455.     public function setFotoCronoFile(?File $fotoCronoFile): self
  1456.     {
  1457.         $this->fotoCronoFile $fotoCronoFile;
  1458.         if ($fotoCronoFile) {
  1459.             // if 'updatedAt' is not defined in your entity, use another property
  1460.             $this->setUpdatedAt(new DateTime('now'));
  1461.         }
  1462.         return $this;
  1463.     }
  1464.     public function getVideo(): ?string
  1465.     {
  1466.         return $this->video;
  1467.     }
  1468.     public function setVideo(?string $video): static
  1469.     {
  1470.         $this->video $video;
  1471.         return $this;
  1472.     }
  1473.     public function getVideoFile(): ?File
  1474.     {
  1475.         return $this->videoFile;
  1476.     }
  1477.     public function setVideoFile(?File $videoFile): self
  1478.     {
  1479.         $this->videoFile $videoFile;
  1480.         if ($videoFile) {
  1481.             // if 'updatedAt' is not defined in your entity, use another property
  1482.             $this->setUpdatedAt(new DateTime('now'));
  1483.         }
  1484.         return $this;
  1485.     }
  1486.     /**
  1487.      * @return bool|null
  1488.      * @deprecated Por cambios de funcionalidad
  1489.      */
  1490.     public function isChrono24(): ?bool
  1491.     {
  1492.         return $this->chrono24;
  1493.     }
  1494.     /**
  1495.      * @deprecated Por cambios de funcionalidad
  1496.      * @param bool|null $chrono24
  1497.      * @return $this
  1498.      */
  1499.     public function setChrono24(?bool $chrono24): static
  1500.     {
  1501.         $this->chrono24 $chrono24;
  1502.         return $this;
  1503.     }
  1504.     /**
  1505.      * @return Collection<int, DetalleVenta>
  1506.      */
  1507.     public function getDetalleVenta(): Collection
  1508.     {
  1509.         return $this->detalleVenta;
  1510.     }
  1511.     public function getDetalleVentaAsentada(): ?DetalleVenta
  1512.     {
  1513.         return ($this->getDetalleVenta()->filter(fn($dc) => $dc->getVenta()->getOperacion()->getEstado()->getKey() === EstadoOperacionEnum::ESTADO_ASENTADA))->first();
  1514.     }
  1515.     public function addDetalleVentum(DetalleVenta $detalleVentum): static
  1516.     {
  1517.         if (!$this->detalleVenta->contains($detalleVentum)) {
  1518.             $this->detalleVenta->add($detalleVentum);
  1519.             $detalleVentum->setReloj($this);
  1520.         }
  1521.         return $this;
  1522.     }
  1523.     public function removeDetalleVentum(DetalleVenta $detalleVentum): static
  1524.     {
  1525.         if ($this->detalleVenta->removeElement($detalleVentum)) {
  1526.             // set the owning side to null (unless already changed)
  1527.             if ($detalleVentum->getReloj() === $this) {
  1528.                 $detalleVentum->setReloj(null);
  1529.             }
  1530.         }
  1531.         return $this;
  1532.     }
  1533.     public function getPrecioCompra(): ?float
  1534.     {
  1535.         return $this->precioCompra;
  1536.     }
  1537.     public function setPrecioCompra(?float $precioCompra): static
  1538.     {
  1539.         $this->precioCompra $precioCompra;
  1540.         return $this;
  1541.     }
  1542.     /**
  1543.      * @deprecated A partir del 04/06/2024 cuando se realiza el ciclo completo sustituir por "getOperacionCompra"
  1544.      * @return Operacion|null
  1545.      */
  1546.     public function getOperacion():?Operacion
  1547.     {
  1548.         return $this->getDetalleCompra()?->getCompra()?->getOperacion();
  1549.     }
  1550.     public function getOperacionCompra():?Operacion
  1551.     {
  1552.         //return $this->getDetalleCompra()?->getCompra()?->getOperacion()->filter(fn($operacion) => $operacion->getEstado()?->getKey() === EstadoOperacionEnum::ESTADO_CONFIRMADA || $operacion->getEstado()?->getKey() === EstadoOperacionEnum::ESTADO_ASENTADA);
  1553.         return $this->operacionCompra;
  1554.     }
  1555.     public function getOperacionGestionCompra():?Operacion
  1556.     {
  1557.         return $this->getOperacionCompra()??$this->getOperacionGestion();
  1558.     }
  1559.     public function getOperacionVenta():?Operacion
  1560.     {
  1561.         /*$detalle = $this->getDetalleVenta();
  1562.         if($detalle->count() !== 1 && $detalle->count() !== 0) throw new Exception('ERROR, PENDIENTE de resolver / controlar');
  1563.         return $detalle->count() === 0 ? null : $this->getDetalleVenta()->first()->getVenta()?->getOperacion();*/
  1564.         return $this->operacionVenta;
  1565.     }
  1566.     public function getRecompra(): ?float
  1567.     {
  1568.         return $this->recompra;
  1569.     }
  1570.     public function setRecompra(?float $recompra): static
  1571.     {
  1572.         $this->recompra $recompra;
  1573.         return $this;
  1574.     }
  1575.     public function getGarantia(): ?string
  1576.     {
  1577.         return $this->garantia;
  1578.     }
  1579.     public function setGarantia(?string $garantia): static
  1580.     {
  1581.         $this->garantia $garantia;
  1582.         return $this;
  1583.     }
  1584.     public function getOperacionGestion(): ?Operacion
  1585.     {
  1586.         return $this->operacionGestion;
  1587.     }
  1588.     public function setOperacionGestion(?Operacion $operacionGestion): static
  1589.     {
  1590.         $this->operacionGestion $operacionGestion;
  1591.         return $this;
  1592.     }
  1593.     public function setOperacionVenta(?Operacion $operacionVenta): static
  1594.     {
  1595.         $this->operacionVenta $operacionVenta;
  1596.         return $this;
  1597.     }
  1598.     public function setOperacionCompra(?Operacion $operacionCompra): static
  1599.     {
  1600.         $this->operacionCompra $operacionCompra;
  1601.         return $this;
  1602.     }
  1603.     public function getActividadCompra(): ?ActividadCompra
  1604.     {
  1605.         return $this->actividadCompra;
  1606.     }
  1607.     public function setActividadCompra(?ActividadCompra $actividadCompra): static
  1608.     {
  1609.         // unset the owning side of the relation if necessary
  1610.         if ($actividadCompra === null && $this->actividadCompra !== null) {
  1611.             $this->actividadCompra->setReloj(null);
  1612.         }
  1613.         // set the owning side of the relation if necessary
  1614.         if ($actividadCompra !== null && $actividadCompra->getReloj() !== $this) {
  1615.             $actividadCompra->setReloj($this);
  1616.         }
  1617.         $this->actividadCompra $actividadCompra;
  1618.         return $this;
  1619.     }
  1620.     public function getActividadVenta(): ?ActividadVenta
  1621.     {
  1622.         return $this->actividadVenta;
  1623.     }
  1624.     public function setActividadVenta(?ActividadVenta $actividadVenta): static
  1625.     {
  1626.         // unset the owning side of the relation if necessary
  1627.         if ($actividadVenta === null && $this->actividadVenta !== null) {
  1628.             $this->actividadVenta->setReloj(null);
  1629.         }
  1630.         // set the owning side of the relation if necessary
  1631.         if ($actividadVenta !== null && $actividadVenta->getReloj() !== $this) {
  1632.             $actividadVenta->setReloj($this);
  1633.         }
  1634.         $this->actividadVenta $actividadVenta;
  1635.         return $this;
  1636.     }
  1637.     public function getPeso(): ?float
  1638.     {
  1639.         return $this->peso;
  1640.     }
  1641.     public function setPeso(?float $peso): static
  1642.     {
  1643.         $this->peso $peso;
  1644.         return $this;
  1645.     }
  1646.     public function getDescripcion(): ?string
  1647.     {
  1648.         return $this->descripcion;
  1649.     }
  1650.     public function setDescripcion(?string $descripcion): static
  1651.     {
  1652.         $this->descripcion $descripcion;
  1653.         return $this;
  1654.     }
  1655.     public function getFechaStr(): ?string
  1656.     {
  1657.         return $this->fecha?->format("d/m/Y");
  1658.     }
  1659.     public function getExportPeso():?string
  1660.     {
  1661.         return number_format($this->peso2',''.') . ' g.';
  1662.     }
  1663.     public function getExportPrecioCompra():?string
  1664.     {
  1665.         return number_format($this->precioCompra2',''.') . ' €';
  1666.     }
  1667.     /**
  1668.      * @return Collection<int, DetalleCompra>
  1669.      */
  1670.     public function getDetalleCompra(): Collection
  1671.     {
  1672.         return $this->detalleCompra;
  1673.     }
  1674.     public function getDetalleCompraAsentada(): ?DetalleCompra
  1675.     {
  1676.         return ($this->getDetalleCompra()->filter(fn($dc) => $dc->getCompra()->getOperacion()->getTipo() === TipoOperacionEnum::OPERACION_COMPRA || $dc->getCompra()->getOperacion()->getTipo() === TipoOperacionEnum::OPERACION_PERMUTA))->first();
  1677.     }
  1678.     public function addDetalleCompra(DetalleCompra $detalleCompra): static
  1679.     {
  1680.         if (!$this->detalleCompra->contains($detalleCompra)) {
  1681.             $this->detalleCompra->add($detalleCompra);
  1682.             $detalleCompra->setReloj($this);
  1683.         }
  1684.         return $this;
  1685.     }
  1686.     public function removeDetalleCompra(DetalleCompra $detalleCompra): static
  1687.     {
  1688.         if ($this->detalleCompra->removeElement($detalleCompra)) {
  1689.             // set the owning side to null (unless already changed)
  1690.             if ($detalleCompra->getReloj() === $this) {
  1691.                 $detalleCompra->setReloj(null);
  1692.             }
  1693.         }
  1694.         return $this;
  1695.     }
  1696.     public function getTiempoEnVenta(): ?int
  1697.     {
  1698.         return $this->tiempoEnVenta;
  1699.     }
  1700.     public function setTiempoEnVenta(?int $tiempoEnVenta): static
  1701.     {
  1702.         $this->tiempoEnVenta $tiempoEnVenta;
  1703.         return $this;
  1704.     }
  1705.     public function getTiempoEnStock(): ?int
  1706.     {
  1707.         return $this->tiempoEnStock;
  1708.     }
  1709.     public function setTiempoEnStock(?int $tiempoEnStock): static
  1710.     {
  1711.         $this->tiempoEnStock $tiempoEnStock;
  1712.         return $this;
  1713.     }
  1714.     public function getFechaRecepcion(): ?DateTimeInterface
  1715.     {
  1716.         return $this->fechaRecepcion;
  1717.     }
  1718.     public function getFechaRecepcionStr(): ?string
  1719.     {
  1720.         return $this->fechaRecepcion?->format("d/m/Y");
  1721.     }
  1722.     public function setFechaRecepcion(?DateTimeInterface $fechaRecepcion): static
  1723.     {
  1724.         $this->fechaRecepcion $fechaRecepcion;
  1725.         return $this;
  1726.     }
  1727.     public function getFechaValoracion(): ?DateTimeInterface
  1728.     {
  1729.         return $this->fechaValoracion;
  1730.     }
  1731.     public function setFechaValoracion(?DateTimeInterface $fechaValoracion): static
  1732.     {
  1733.         $this->fechaValoracion $fechaValoracion;
  1734.         return $this;
  1735.     }
  1736.     public function getFechaAnuncio(): ?DateTimeInterface
  1737.     {
  1738.         return $this->fechaAnuncio;
  1739.     }
  1740.     public function setFechaAnuncio(?DateTimeInterface $fechaAnuncio): static
  1741.     {
  1742.         $this->fechaAnuncio $fechaAnuncio;
  1743.         return $this;
  1744.     }
  1745.     public function getValoracion(): ?Valoracion
  1746.     {
  1747.         return $this->valoracion;
  1748.     }
  1749.     public function setValoracion(?Valoracion $valoracion): static
  1750.     {
  1751.         $this->valoracion $valoracion;
  1752.         return $this;
  1753.     }
  1754.     public function getValoracionReloj(): ?ValoracionesRelojesSinStock
  1755.     {
  1756.         return $this->valoracionReloj;
  1757.     }
  1758.     public function setValoracionReloj(?ValoracionesRelojesSinStock $valoracionReloj): static
  1759.     {
  1760.         // unset the owning side of the relation if necessary
  1761.         if ($valoracionReloj === null && $this->valoracionReloj !== null) {
  1762.             $this->valoracionReloj->setRelojInventario(null);
  1763.         }
  1764.         // set the owning side of the relation if necessary
  1765.         if ($valoracionReloj !== null && $valoracionReloj->getRelojInventario() !== $this) {
  1766.             $valoracionReloj->setRelojInventario($this);
  1767.         }
  1768.         $this->valoracionReloj $valoracionReloj;
  1769.         return $this;
  1770.     }
  1771.     public function hasBeenSold():bool
  1772.     {
  1773.         if($this->getEstado()?->getKey() === EstadoRelojEnum::ESTADO_VENDIDO) return true;
  1774.         $criteria Criteria::create()
  1775.             ->orderBy(['fecha' => Criteria::DESC])
  1776.             ->setMaxResults(1);
  1777.         $ultimaAccion $this->getPromociones()?->getAcciones()
  1778.             ?->filter(fn($accion) => $accion instanceof AccionEstado)
  1779.             ?->matching($criteria)
  1780.             ?->first();
  1781.         return $ultimaAccion?->getEstado()?->getKey() === EstadoRelojEnum::ESTADO_VENDIDO;
  1782.     }
  1783.     public function getGenero(): ?GeneroRelojEnum
  1784.     {
  1785.         return $this->genero;
  1786.     }
  1787.     public function setGenero(?GeneroRelojEnum $genero): static
  1788.     {
  1789.         $this->genero $genero;
  1790.         return $this;
  1791.     }
  1792.     public function getEstadoCaja(): ?int
  1793.     {
  1794.         return $this->estadoCaja;
  1795.     }
  1796.     public function setEstadoCaja(?int $estadoCaja): static
  1797.     {
  1798.         $this->estadoCaja $estadoCaja;
  1799.         return $this;
  1800.     }
  1801.     public function getEstadoCristal(): ?int
  1802.     {
  1803.         return $this->estadoCristal;
  1804.     }
  1805.     public function setEstadoCristal(?int $estadoCristal): static
  1806.     {
  1807.         $this->estadoCristal $estadoCristal;
  1808.         return $this;
  1809.     }
  1810.     public function getEstadoDial(): ?int
  1811.     {
  1812.         return $this->estadoDial;
  1813.     }
  1814.     public function setEstadoDial(?int $estadoDial): static
  1815.     {
  1816.         $this->estadoDial $estadoDial;
  1817.         return $this;
  1818.     }
  1819.     public function getEstadoAgujas(): ?int
  1820.     {
  1821.         return $this->estadoAgujas;
  1822.     }
  1823.     public function setEstadoAgujas(?int $estadoAgujas): static
  1824.     {
  1825.         $this->estadoAgujas $estadoAgujas;
  1826.         return $this;
  1827.     }
  1828.     public function getEstadoTapa(): ?int
  1829.     {
  1830.         return $this->estadoTapa;
  1831.     }
  1832.     public function setEstadoTapa(?int $estadoTapa): static
  1833.     {
  1834.         $this->estadoTapa $estadoTapa;
  1835.         return $this;
  1836.     }
  1837.     public function getEstadoCorrea(): ?int
  1838.     {
  1839.         return $this->estadoCorrea;
  1840.     }
  1841.     public function setEstadoCorrea(?int $estadoCorrea): static
  1842.     {
  1843.         $this->estadoCorrea $estadoCorrea;
  1844.         return $this;
  1845.     }
  1846.     public function getEsferaIndice(): ?TipoEsferaIndiceEnum
  1847.     {
  1848.         return $this->esferaIndice;
  1849.     }
  1850.     public function setEsferaIndice(?TipoEsferaIndiceEnum $esferaIndice): static
  1851.     {
  1852.         $this->esferaIndice $esferaIndice;
  1853.         return $this;
  1854.     }
  1855.     public function getEsferaColor(): ?string
  1856.     {
  1857.         return $this->esferaColor;
  1858.     }
  1859.     public function setEsferaColor(?string $esferaColor): static
  1860.     {
  1861.         $this->esferaColor $esferaColor;
  1862.         return $this;
  1863.     }
  1864.     public function isEsferaJoyas(): ?bool
  1865.     {
  1866.         return $this->esferaJoyas;
  1867.     }
  1868.     public function setEsferaJoyas(?bool $esferaJoyas): static
  1869.     {
  1870.         $this->esferaJoyas $esferaJoyas;
  1871.         return $this;
  1872.     }
  1873.     public function getCajaRelojDiametro(): ?int
  1874.     {
  1875.         return $this->cajaRelojDiametro;
  1876.     }
  1877.     public function setCajaRelojDiametro(?int $cajaRelojDiametro): static
  1878.     {
  1879.         $this->cajaRelojDiametro $cajaRelojDiametro;
  1880.         return $this;
  1881.     }
  1882.     public function getCajaRelojGrosor(): ?int
  1883.     {
  1884.         return $this->cajaRelojGrosor;
  1885.     }
  1886.     public function setCajaRelojGrosor(?int $cajaRelojGrosor): static
  1887.     {
  1888.         $this->cajaRelojGrosor $cajaRelojGrosor;
  1889.         return $this;
  1890.     }
  1891.     public function getCajaRelojResistenciaAgua(): ?int
  1892.     {
  1893.         return $this->cajaRelojResistenciaAgua;
  1894.     }
  1895.     public function setCajaRelojResistenciaAgua(?int $cajaRelojResistenciaAgua): static
  1896.     {
  1897.         $this->cajaRelojResistenciaAgua $cajaRelojResistenciaAgua;
  1898.         return $this;
  1899.     }
  1900.     public function getCajaRelojCristal(): ?TipoCristalEnum
  1901.     {
  1902.         return $this->cajaRelojCristal;
  1903.     }
  1904.     public function setCajaRelojCristal(?TipoCristalEnum $cajaRelojCristal): static
  1905.     {
  1906.         $this->cajaRelojCristal $cajaRelojCristal;
  1907.         return $this;
  1908.     }
  1909.     public function getPulseraColor(): ?string
  1910.     {
  1911.         return $this->pulseraColor;
  1912.     }
  1913.     public function setPulseraColor(?string $pulseraColor): static
  1914.     {
  1915.         $this->pulseraColor $pulseraColor;
  1916.         return $this;
  1917.     }
  1918.     public function getPulseraCierre(): ?TipoCierreEnum
  1919.     {
  1920.         return $this->pulseraCierre;
  1921.     }
  1922.     public function setPulseraCierre(?TipoCierreEnum $pulseraCierre): static
  1923.     {
  1924.         $this->pulseraCierre $pulseraCierre;
  1925.         return $this;
  1926.     }
  1927.     public function getPulseraAnchoCaja(): ?int
  1928.     {
  1929.         return $this->pulseraAnchoCaja;
  1930.     }
  1931.     public function setPulseraAnchoCaja(?int $pulseraAnchoCaja): static
  1932.     {
  1933.         $this->pulseraAnchoCaja $pulseraAnchoCaja;
  1934.         return $this;
  1935.     }
  1936.     public function getPulseraAnchoCierre(): ?int
  1937.     {
  1938.         return $this->pulseraAnchoCierre;
  1939.     }
  1940.     public function setPulseraAnchoCierre(?int $pulseraAnchoCierre): static
  1941.     {
  1942.         $this->pulseraAnchoCierre $pulseraAnchoCierre;
  1943.         return $this;
  1944.     }
  1945.     public function getPulseraMedidaMunieca(): ?int
  1946.     {
  1947.         return $this->pulseraMedidaMunieca;
  1948.     }
  1949.     public function setPulseraMedidaMunieca(?int $pulseraMedidaMunieca): static
  1950.     {
  1951.         $this->pulseraMedidaMunieca $pulseraMedidaMunieca;
  1952.         return $this;
  1953.     }
  1954.     public function getCalibre(): ?CalibreEnum
  1955.     {
  1956.         return $this->calibre;
  1957.     }
  1958.     public function setCalibre(?CalibreEnum $calibre): static
  1959.     {
  1960.         $this->calibre $calibre;
  1961.         return $this;
  1962.     }
  1963.     public function getCalibreAvanzado(): ?string
  1964.     {
  1965.         return $this->calibreAvanzado;
  1966.     }
  1967.     public function setCalibreAvanzado(?string $calibreAvanzado): static
  1968.     {
  1969.         $this->calibreAvanzado $calibreAvanzado;
  1970.         return $this;
  1971.     }
  1972.     public function getCalibreBasico(): ?string
  1973.     {
  1974.         return $this->calibreBasico;
  1975.     }
  1976.     public function setCalibreBasico(?string $calibreBasico): static
  1977.     {
  1978.         $this->calibreBasico $calibreBasico;
  1979.         return $this;
  1980.     }
  1981.     public function getCalibreReservaMarcha(): ?string
  1982.     {
  1983.         return $this->calibreReservaMarcha;
  1984.     }
  1985.     public function setCalibreReservaMarcha(?string $calibreReservaMarcha): static
  1986.     {
  1987.         $this->calibreReservaMarcha $calibreReservaMarcha;
  1988.         return $this;
  1989.     }
  1990.     public function getCalibreNumeroJoyas(): ?string
  1991.     {
  1992.         return $this->calibreNumeroJoyas;
  1993.     }
  1994.     public function setCalibreNumeroJoyas(?string $calibreNumeroJoyas): static
  1995.     {
  1996.         $this->calibreNumeroJoyas $calibreNumeroJoyas;
  1997.         return $this;
  1998.     }
  1999.     public function getCalibreOscilacion(): ?string
  2000.     {
  2001.         return $this->calibreOscilacion;
  2002.     }
  2003.     public function setCalibreOscilacion(?string $calibreOscilacion): static
  2004.     {
  2005.         $this->calibreOscilacion $calibreOscilacion;
  2006.         return $this;
  2007.     }
  2008.     public function getCalibreAmplitud(): ?string
  2009.     {
  2010.         return $this->calibreAmplitud;
  2011.     }
  2012.     public function setCalibreAmplitud(?string $calibreAmplitud): static
  2013.     {
  2014.         $this->calibreAmplitud $calibreAmplitud;
  2015.         return $this;
  2016.     }
  2017.     public function getCalibreMarcha(): ?string
  2018.     {
  2019.         return $this->calibreMarcha;
  2020.     }
  2021.     public function setCalibreMarcha(?string $calibreMarcha): static
  2022.     {
  2023.         $this->calibreMarcha $calibreMarcha;
  2024.         return $this;
  2025.     }
  2026.     public function getPiezasRepuesto(): ?PiezaRepuestoEnum
  2027.     {
  2028.         return $this->piezasRepuesto;
  2029.     }
  2030.     public function setPiezasRepuesto(?PiezaRepuestoEnum $piezasRepuesto): static
  2031.     {
  2032.         $this->piezasRepuesto $piezasRepuesto;
  2033.         return $this;
  2034.     }
  2035.     public function getPiezasRepuestoObservaciones(): ?string
  2036.     {
  2037.         return $this->piezasRepuestoObservaciones;
  2038.     }
  2039.     public function setPiezasRepuestoObservaciones(?string $piezasRepuestoObservaciones): static
  2040.     {
  2041.         $this->piezasRepuestoObservaciones $piezasRepuestoObservaciones;
  2042.         return $this;
  2043.     }
  2044.     public function getServicioMantenimiento(): ?ServicioMantenimientoEnum
  2045.     {
  2046.         return $this->servicioMantenimiento;
  2047.     }
  2048.     public function setServicioMantenimiento(?ServicioMantenimientoEnum $servicioMantenimiento): static
  2049.     {
  2050.         $this->servicioMantenimiento $servicioMantenimiento;
  2051.         return $this;
  2052.     }
  2053.     public function getCondiciones(): ?string
  2054.     {
  2055.         return $this->condiciones;
  2056.     }
  2057.     public function setCondiciones(?string $condiciones): static
  2058.     {
  2059.         $this->condiciones $condiciones;
  2060.         return $this;
  2061.     }
  2062.     public function getAnuncioES(): ?string
  2063.     {
  2064.         return $this->anuncioES;
  2065.     }
  2066.     public function setAnuncioES(?string $anuncioES): static
  2067.     {
  2068.         $this->anuncioES $anuncioES;
  2069.         return $this;
  2070.     }
  2071.     public function getAnuncioEN(): ?string
  2072.     {
  2073.         return $this->anuncioEN;
  2074.     }
  2075.     public function setAnuncioEN(?string $anuncioEN): static
  2076.     {
  2077.         $this->anuncioEN $anuncioEN;
  2078.         return $this;
  2079.     }
  2080.     public function getEmpresa(): ?Empresa
  2081.     {
  2082.         return $this->empresa;
  2083.     }
  2084.     public function setEmpresa(?Empresa $empresa): static
  2085.     {
  2086.         $this->empresa $empresa;
  2087.         return $this;
  2088.     }
  2089.     public function getCajaRelojMaterial(): ?Material
  2090.     {
  2091.         return $this->cajaRelojMaterial;
  2092.     }
  2093.     public function setCajaRelojMaterial(?Material $cajaRelojMaterial): static
  2094.     {
  2095.         $this->cajaRelojMaterial $cajaRelojMaterial;
  2096.         return $this;
  2097.     }
  2098.     public function getCajaRelojMaterialBisel(): ?Material
  2099.     {
  2100.         return $this->cajaRelojMaterialBisel;
  2101.     }
  2102.     public function setCajaRelojMaterialBisel(?Material $cajaRelojMaterialBisel): static
  2103.     {
  2104.         $this->cajaRelojMaterialBisel $cajaRelojMaterialBisel;
  2105.         return $this;
  2106.     }
  2107.     public function getPulseraMaterial(): ?Material
  2108.     {
  2109.         return $this->pulseraMaterial;
  2110.     }
  2111.     public function setPulseraMaterial(?Material $pulseraMaterial): static
  2112.     {
  2113.         $this->pulseraMaterial $pulseraMaterial;
  2114.         return $this;
  2115.     }
  2116.     public function getPulseraMaterialCierre(): ?Material
  2117.     {
  2118.         return $this->pulseraMaterialCierre;
  2119.     }
  2120.     public function setPulseraMaterialCierre(?Material $pulseraMaterialCierre): static
  2121.     {
  2122.         $this->pulseraMaterialCierre $pulseraMaterialCierre;
  2123.         return $this;
  2124.     }
  2125.     public function getCalibreCaracteristicas(): ?array
  2126.     {
  2127.         return $this->calibreCaracteristicas;
  2128.     }
  2129.     public function setCalibreCaracteristicas(?array $calibreCaracteristicas): static
  2130.     {
  2131.         $this->calibreCaracteristicas $calibreCaracteristicas;
  2132.         return $this;
  2133.     }
  2134.     public function getCalibreFunciones(): ?array
  2135.     {
  2136.         return $this->calibreFunciones;
  2137.     }
  2138.     public function setCalibreFunciones(?array $calibreFunciones): static
  2139.     {
  2140.         $this->calibreFunciones $calibreFunciones;
  2141.         return $this;
  2142.     }
  2143.     public function getDescripcionDetallada(): ?string
  2144.     {
  2145.         return $this->descripcionDetallada;
  2146.     }
  2147.     public function setDescripcionDetallada(?string $descripcionDetallada): static
  2148.     {
  2149.         $this->descripcionDetallada $descripcionDetallada;
  2150.         return $this;
  2151.     }
  2152.     public function getPapelesStr():string
  2153.     {
  2154.         return $this->getPapeles() ? 'reloj.con_papeles' 'reloj.sin_papeles';
  2155.     }
  2156.     public function getCajaStr():string
  2157.     {
  2158.         return $this->getCaja() ? 'reloj.con_caja' 'reloj.sin_caja';
  2159.     }
  2160. }