src/Entity/Equipo.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  5. use DateTimeInterface;
  6. /**
  7.  * Equipo
  8.  *
  9.  * @ORM\Table(name="equipo", indexes={@ORM\Index(name="equipo_ubicacion_fk", columns={"ubicacion"}), @ORM\Index(name="equipo_usuario_fk", columns={"usuario"})})
  10.  * @ORM\Entity(repositoryClass="App\Repository\EquipoRepository")
  11.  * @UniqueEntity(fields={"marbete"}, message="Existe un EQUIPO registrado con el mismo marbete")
  12.  */
  13. class Equipo
  14. {
  15.     /**
  16.      * @var int
  17.      * @ORM\Column(name="id_equ", type="integer", nullable=false, options={"comment"="Identificador único del equipo informático."})
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="IDENTITY")
  20.      */
  21.     private $idEqu;
  22.     /**
  23.      * @var string|null
  24.      * @ORM\Column(name="marbete", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Número de marbete asignado al equipo por el sistema de inventarios del estado de méxico SICOPA."})
  25.      */
  26.     protected $marbete;
  27.     //private $marbete = '';
  28.     /**
  29.      * @var string|null
  30.      * @ORM\Column(name="descripcion", type="text", length=65535, nullable=true, options={"default"="NULL","comment"="Descripción de la computadora en turno"})
  31.      */
  32.     private $descripcion '';
  33.     /**
  34.      * @var string|null
  35.      * @ORM\Column(name="marca", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Marca del equipo."})
  36.      */
  37.     private $marca '';
  38.     /**
  39.      * @var string|null
  40.      * @ORM\Column(name="modelo", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Modelo del equipo"})
  41.      */
  42.     private $modelo '';
  43.     /**
  44.      * @var string|null
  45.      *
  46.      * @ORM\Column(name="serie", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Número de serie del equipo"})
  47.      */
  48.     private $serie '';
  49.     /**
  50.      * @var string|null
  51.      *
  52.      * @ORM\Column(name="procesador", type="string", length=80, nullable=true, options={"default"="NULL","comment"="Descripción completa del procesador o en su defecto la matricula del procesador."})
  53.      */
  54.     private $procesador '';
  55.     /**
  56.      * @var int|null
  57.      *
  58.      * @ORM\Column(name="nucleos", type="integer", nullable=true, options={"default"="NULL","comment"="Número de nucleos del procesador"})
  59.      */
  60.     private $nucleos 4;
  61.     /**
  62.      * @var string|null
  63.      *
  64.      * @ORM\Column(name="cpu_velocidad", type="string", length=40, nullable=true, options={"default"="NULL","comment"="Velocidad del procesador en GHz"})
  65.      */
  66.     private $cpuVelocidad 3.2;
  67.     /**
  68.      * @var string|null
  69.      *
  70.      * @ORM\Column(name="ram", type="string", length=40, nullable=true, options={"default"="NULL","comment"="Cantidad de memoria RAM de la computadora en GB"})
  71.      */
  72.     private $ram 4;
  73.     /**
  74.      * @var string|null
  75.      *
  76.      * @ORM\Column(name="hhd", type="string", length=40, nullable=true, options={"default"="NULL","comment"="Capacidad del Disco Duro Mecánico de la computadora en GB"})
  77.      */
  78.     private $hhd '';
  79.     /**
  80.      * @var string|null
  81.      *
  82.      * @ORM\Column(name="ssd", type="string", length=40, nullable=true, options={"default"="NULL","comment"="Capacidad del Disco Duro de Estado solido de la computadora en GB"})
  83.      */
  84.     private $ssd '';
  85.     /**
  86.      * @var string|null
  87.      *
  88.      * @ORM\Column(name="mac", type="string", length=18, nullable=true, options={"default"="NULL","comment"="Dirección MAC del equipo"})
  89.      */
  90.     private $mac '';
  91.     /**
  92.      * @var string|null
  93.      *
  94.      * @ORM\Column(name="ip", type="string", length=16, nullable=true, options={"default"="NULL","comment"="Dirección IP del equipo"})
  95.      */
  96.     private $ip '';
  97.     /**
  98.      * @var string|null
  99.      *
  100.      * @ORM\Column(name="monitor_marbete", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Número de marbete asignado al monitor por el sistema de inventarios del estado de méxico SICOPA. Normalmente este numero es igual al marbete del equipo. Pero hay exepciones en donde puede ser diferente"})
  101.      */
  102.     private $monitorMarbete '';
  103.     /**
  104.      * @var string|null
  105.      *
  106.      * @ORM\Column(name="monitor_marca", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Marca del monitor"})
  107.      */
  108.     private $monitorMarca '';
  109.     /**
  110.      * @var string|null
  111.      *
  112.      * @ORM\Column(name="monitor_modelo", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Modelo del monitor"})
  113.      */
  114.     private $monitorModelo '';
  115.     /**
  116.      * @var string|null
  117.      *
  118.      * @ORM\Column(name="monitor_serie", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Número de serie del teclado"})
  119.      */
  120.     private $monitorSerie '';
  121.     /**
  122.      * @var string|null
  123.      *
  124.      * @ORM\Column(name="monitor_tipo", type="string", length=20, nullable=true, options={"default"="NULL","comment"="Solo hay cuatro opciones: ""Monocromo"", ""VGA"", ""Supere VGA"" y ""Ultra VGA"""})
  125.      */
  126.     private $monitorTipo '';
  127.     /**
  128.      * @var string|null
  129.      *
  130.      * @ORM\Column(name="monitor_pulgadas", type="string", length=20, nullable=true, options={"default"="NULL","comment"="Pulgadas diagonales del monitor"})
  131.      */
  132.     private $monitorPulgadas '';
  133.     /**
  134.      * @var string|null
  135.      *
  136.      * @ORM\Column(name="teclado_marca", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Marca del teclado"})
  137.      */
  138.     private $tecladoMarca '';
  139.     /**
  140.      * @var string|null
  141.      *
  142.      * @ORM\Column(name="teclado_modelo", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Modelo del teclado"})
  143.      */
  144.     private $tecladoModelo '';
  145.     /**
  146.      * @var string|null
  147.      *
  148.      * @ORM\Column(name="teclado_serie", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Número de serie del teclado"})
  149.      */
  150.     private $tecladoSerie '';
  151.     /**
  152.      * @var string|null
  153.      *
  154.      * @ORM\Column(name="mouse_marca", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Marca del mouse"})
  155.      */
  156.     private $mouseMarca '';
  157.     /**
  158.      * @var string|null
  159.      *
  160.      * @ORM\Column(name="mouse_modelo", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Modelo del mouse"})
  161.      */
  162.     private $mouseModelo '';
  163.     /**
  164.      * @var string|null
  165.      *
  166.      * @ORM\Column(name="mouse_serie", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Número de serie del mouse"})
  167.      */
  168.     private $mouseSerie '';
  169.     /**
  170.      * @var string|null
  171.      *
  172.      * @ORM\Column(name="uso", type="string", length=20, nullable=true, options={"default"="NULL","comment"="Para describir el uso que se le da al equipo
  173. 1=Educativo
  174. 2=Docente
  175. 3=Administrativo"})
  176.      */
  177.     private $uso '';
  178.     /**
  179.      * @var string|null
  180.      *
  181.      * @ORM\Column(name="funcion", type="string", length=20, nullable=true, options={"default"="NULL","comment"="función principal Servidor / ecritorio SW instalado
  182. 1=Escritorio
  183. 2=Servidor
  184. "})
  185.      */
  186.     private $funcion '';
  187.     /**
  188.      * @var string|null
  189.      *
  190.      * @ORM\Column(name="funcion_descripcion", type="text", length=65535, nullable=true, options={"default"="NULL","comment"="Para la carrera, o tipo de servidor o controlador"})
  191.      */
  192.     private $funcionDescripcion '';
  193.     /**
  194.      * @var string|null
  195.      *
  196.      * @ORM\Column(name="estatus", type="string", length=20, nullable=true, options={"default"="NULL","comment"="Para indicar el estado en que se encuentra el equipo
  197. 1=En operación
  198. 2=Descompuesto
  199. 3=Sin instalar
  200. 4=En proceso de baja
  201. 5=Baja"})
  202.      */
  203.     private $estatus '';
  204.     /**
  205.      * @var \DateTime|null
  206.      * @ORM\Column(name="falta", type="datetime", options={"default"="CURRENT_TIMESTAMP"})
  207.      */
  208.     private $falta;
  209.     /**
  210.      * @var \DateTime|null
  211.      * @ORM\Column(name="factualizacion", type="datetime", options={"default"="CURRENT_TIMESTAMP"})
  212.      */
  213.     private $factualizacion;
  214.     /**
  215.      * @var bool|null
  216.      *
  217.      * @ORM\Column(name="emhv", type="boolean", nullable=true, options={"default"="NULL","comment"="Solo hay dos opciones: ""1"" si cumple con EMHV o ""0"" si no cumple con EMHV."})
  218.      */
  219.     private $emhv;
  220.     /**
  221.      * @var Usuario
  222.      *
  223.      * @ORM\ManyToOne(targetEntity="Usuario")
  224.      * @ORM\JoinColumns({
  225.      *   @ORM\JoinColumn(name="usuario", referencedColumnName="id_usu")
  226.      * })
  227.      */
  228.     private $usuario;
  229.     /**
  230.      * @var Ubicacion
  231.      *
  232.      * @ORM\ManyToOne(targetEntity="Ubicacion")
  233.      * @ORM\JoinColumns({
  234.      *   @ORM\JoinColumn(name="ubicacion", referencedColumnName="id_ubi")
  235.      * })
  236.      */
  237.     private $ubicacion;
  238.     /**
  239.      * @var \Unidad
  240.      *
  241.      * @ORM\ManyToOne(targetEntity="Unidad")
  242.      * @ORM\JoinColumns({
  243.      *   @ORM\JoinColumn(name="unidad", referencedColumnName="id_uni")
  244.      * })
  245.      */
  246.     private $unidad;
  247.     public function getIdEqu(): ?int
  248.     {
  249.         return $this->idEqu;
  250.     }
  251.     public function getMarbete(): ?string
  252.     {
  253.         return $this->marbete;
  254.     }
  255.     public function setMarbete(?string $marbete): self
  256.     {
  257.         $this->marbete $marbete;
  258.         return $this;
  259.     }
  260.     public function getDescripcion(): ?string
  261.     {
  262.         return $this->descripcion;
  263.     }
  264.     public function setDescripcion(?string $descripcion): self
  265.     {
  266.         $this->descripcion $descripcion;
  267.         return $this;
  268.     }
  269.     public function getMarca(): ?string
  270.     {
  271.         return $this->marca;
  272.     }
  273.     public function setMarca(?string $marca): self
  274.     {
  275.         $this->marca $marca;
  276.         return $this;
  277.     }
  278.     public function getModelo(): ?string
  279.     {
  280.         return $this->modelo;
  281.     }
  282.     public function setModelo(?string $modelo): self
  283.     {
  284.         $this->modelo $modelo;
  285.         return $this;
  286.     }
  287.     public function getSerie(): ?string
  288.     {
  289.         return $this->serie;
  290.     }
  291.     public function setSerie(?string $serie): self
  292.     {
  293.         $this->serie $serie;
  294.         return $this;
  295.     }
  296.     public function getProcesador(): ?string
  297.     {
  298.         return $this->procesador;
  299.     }
  300.     public function setProcesador(?string $procesador): self
  301.     {
  302.         $this->procesador $procesador;
  303.         return $this;
  304.     }
  305.     public function getNucleos(): ?int
  306.     {
  307.         return $this->nucleos;
  308.     }
  309.     public function setNucleos(?int $nucleos): self
  310.     {
  311.         $this->nucleos $nucleos;
  312.         return $this;
  313.     }
  314.     public function getCpuVelocidad(): ?string
  315.     {
  316.         return $this->cpuVelocidad;
  317.     }
  318.     public function setCpuVelocidad(?string $cpuVelocidad): self
  319.     {
  320.         $this->cpuVelocidad $cpuVelocidad;
  321.         return $this;
  322.     }
  323.     public function getRam(): ?string
  324.     {
  325.         return $this->ram;
  326.     }
  327.     public function setRam(?string $ram): self
  328.     {
  329.         $this->ram $ram;
  330.         return $this;
  331.     }
  332.     public function getHhd(): ?string
  333.     {
  334.         return $this->hhd;
  335.     }
  336.     public function setHhd(?string $hhd): self
  337.     {
  338.         $this->hhd $hhd;
  339.         return $this;
  340.     }
  341.     public function getSsd(): ?string
  342.     {
  343.         return $this->ssd;
  344.     }
  345.     public function setSsd(?string $ssd): self
  346.     {
  347.         $this->ssd $ssd;
  348.         return $this;
  349.     }
  350.     public function getMac(): ?string
  351.     {
  352.         return $this->mac;
  353.     }
  354.     public function setMac(?string $mac): self
  355.     {
  356.         $this->mac $mac;
  357.         return $this;
  358.     }
  359.     public function getIp(): ?string
  360.     {
  361.         return $this->ip;
  362.     }
  363.     public function setIp(?string $ip): self
  364.     {
  365.         $this->ip $ip;
  366.         return $this;
  367.     }
  368.     public function getMonitorMarbete(): ?string
  369.     {
  370.         return $this->monitorMarbete;
  371.     }
  372.     public function setMonitorMarbete(?string $monitorMarbete): self
  373.     {
  374.         $this->monitorMarbete $monitorMarbete;
  375.         return $this;
  376.     }
  377.     public function getMonitorMarca(): ?string
  378.     {
  379.         return $this->monitorMarca;
  380.     }
  381.     public function setMonitorMarca(?string $monitorMarca): self
  382.     {
  383.         $this->monitorMarca $monitorMarca;
  384.         return $this;
  385.     }
  386.     public function getMonitorModelo(): ?string
  387.     {
  388.         return $this->monitorModelo;
  389.     }
  390.     public function setMonitorModelo(?string $monitorModelo): self
  391.     {
  392.         $this->monitorModelo $monitorModelo;
  393.         return $this;
  394.     }
  395.     public function getMonitorSerie(): ?string
  396.     {
  397.         return $this->monitorSerie;
  398.     }
  399.     public function setMonitorSerie(?string $monitorSerie): self
  400.     {
  401.         $this->monitorSerie $monitorSerie;
  402.         return $this;
  403.     }
  404.     public function getMonitorTipo(): ?string
  405.     {
  406.         return $this->monitorTipo;
  407.     }
  408.     public function setMonitorTipo(?string $monitorTipo): self
  409.     {
  410.         $this->monitorTipo $monitorTipo;
  411.         return $this;
  412.     }
  413.     public function getMonitorPulgadas(): ?string
  414.     {
  415.         return $this->monitorPulgadas;
  416.     }
  417.     public function setMonitorPulgadas(?string $monitorPulgadas): self
  418.     {
  419.         $this->monitorPulgadas $monitorPulgadas;
  420.         return $this;
  421.     }
  422.     public function getTecladoMarca(): ?string
  423.     {
  424.         return $this->tecladoMarca;
  425.     }
  426.     public function setTecladoMarca(?string $tecladoMarca): self
  427.     {
  428.         $this->tecladoMarca $tecladoMarca;
  429.         return $this;
  430.     }
  431.     public function getTecladoModelo(): ?string
  432.     {
  433.         return $this->tecladoModelo;
  434.     }
  435.     public function setTecladoModelo(?string $tecladoModelo): self
  436.     {
  437.         $this->tecladoModelo $tecladoModelo;
  438.         return $this;
  439.     }
  440.     public function getTecladoSerie(): ?string
  441.     {
  442.         return $this->tecladoSerie;
  443.     }
  444.     public function setTecladoSerie(?string $tecladoSerie): self
  445.     {
  446.         $this->tecladoSerie $tecladoSerie;
  447.         return $this;
  448.     }
  449.     public function getMouseMarca(): ?string
  450.     {
  451.         return $this->mouseMarca;
  452.     }
  453.     public function setMouseMarca(?string $mouseMarca): self
  454.     {
  455.         $this->mouseMarca $mouseMarca;
  456.         return $this;
  457.     }
  458.     public function getMouseModelo(): ?string
  459.     {
  460.         return $this->mouseModelo;
  461.     }
  462.     public function setMouseModelo(?string $mouseModelo): self
  463.     {
  464.         $this->mouseModelo $mouseModelo;
  465.         return $this;
  466.     }
  467.     public function getMouseSerie(): ?string
  468.     {
  469.         return $this->mouseSerie;
  470.     }
  471.     public function setMouseSerie(?string $mouseSerie): self
  472.     {
  473.         $this->mouseSerie $mouseSerie;
  474.         return $this;
  475.     }
  476.     public function getUso(): ?string
  477.     {
  478.         return $this->uso;
  479.     }
  480.     public function setUso(?string $uso): self
  481.     {
  482.         $this->uso $uso;
  483.         return $this;
  484.     }
  485.     public function getFuncion(): ?string
  486.     {
  487.         return $this->funcion;
  488.     }
  489.     public function setFuncion(?string $funcion): self
  490.     {
  491.         $this->funcion $funcion;
  492.         return $this;
  493.     }
  494.     public function getFuncionDescripcion(): ?string
  495.     {
  496.         return $this->funcionDescripcion;
  497.     }
  498.     public function setFuncionDescripcion(?string $funcionDescripcion): self
  499.     {
  500.         $this->funcionDescripcion $funcionDescripcion;
  501.         return $this;
  502.     }
  503.     public function getEstatus(): ?string
  504.     {
  505.         return $this->estatus;
  506.     }
  507.     public function setEstatus(?string $estatus): self
  508.     {
  509.         $this->estatus $estatus;
  510.         return $this;
  511.     }
  512.     public function getFalta(): ?\DateTimeInterface
  513.     {
  514.         return $this->falta;
  515.     }
  516.     public function setFalta(?\DateTimeInterface $falta): self
  517.     {
  518.         $this->falta $falta;
  519.         return $this;
  520.     }
  521.     public function getFactualizacion(): ?\DateTimeInterface
  522.     {
  523.         return $this->factualizacion;
  524.     }
  525.     public function setFactualizacion(?\DateTimeInterface $factualizacion): self
  526.     {
  527.         $this->factualizacion $factualizacion;
  528.         return $this;
  529.     }
  530.     public function isEmhv(): ?bool
  531.     {
  532.         return $this->emhv;
  533.     }
  534.     public function setEmhv(?bool $emhv): self
  535.     {
  536.         $this->emhv $emhv;
  537.         return $this;
  538.     }
  539.     public function getUsuario(): ?Usuario
  540.     {
  541.         return $this->usuario;
  542.     }
  543.     public function setUsuario(?Usuario $usuario): self
  544.     {
  545.         $this->usuario $usuario;
  546.         return $this;
  547.     }
  548.     public function getUbicacion(): ?Ubicacion
  549.     {
  550.         return $this->ubicacion;
  551.     }
  552.     public function setUbicacion(?Ubicacion $ubicacion): self
  553.     {
  554.         $this->ubicacion $ubicacion;
  555.         return $this;
  556.     }
  557.     public function getUnidad(): ?Unidad
  558.     {
  559.         return $this->unidad;
  560.     }
  561.     public function setUnidad(?Unidad $unidad): self
  562.     {
  563.         $this->unidad $unidad;
  564.         return $this;
  565.     }
  566.     public function __toString(){
  567.         //return $this->marbete;
  568.         return "(" $this->idEqu") " $this->marbete;
  569.     }
  570. }