src/Entity/Mantenimiento/PedidoReparacionDiagramado.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Mantenimiento;
  3. use App\Repository\Mantenimiento\PedidoReparacionDiagramadoRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use App\Entity\Equipos\Maquinaria;
  7. /**
  8.  * @ORM\Entity(repositoryClass=PedidoReparacionDiagramadoRepository::class)
  9.  */
  10. class PedidoReparacionDiagramado
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="date", nullable=true)
  20.      */
  21.     private $fecha;
  22.     /**
  23.      * @ORM\Column(type="text", nullable=true)
  24.      */
  25.     private $observacionResponsable;
  26.     /**
  27.      * @ORM\Column(type="text", nullable=true)
  28.      */
  29.     private $observacionReparacion;  //Representa la respuesta por parte de quiem realizo la tarea
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      */
  33.     private $realizada false;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=PedidoReparacion::class, inversedBy="pedidosDiagramados")
  36.      * @ORM\JoinColumn(name="id_pedido", referencedColumnName="id")
  37.      */
  38.     private $pedido;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity=DiagramaTarea::class, inversedBy="tareas")
  41.      * @ORM\JoinColumn(name="id_diagrama", referencedColumnName="id")
  42.      */
  43.     private $diagrama;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Maquinaria::class)
  46.      * @ORM\JoinColumn(name="id_equipo", referencedColumnName="id", nullable=true)
  47.      */
  48.     private $equipo;
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getObservacionResponsable(): ?string
  54.     {
  55.         return $this->observacionResponsable;
  56.     }
  57.     public function setObservacionResponsable(?string $observacionResponsable): self
  58.     {
  59.         $this->observacionResponsable $observacionResponsable;
  60.         return $this;
  61.     }
  62.     public function getObservacionReparacion(): ?string
  63.     {
  64.         return $this->observacionReparacion;
  65.     }
  66.     public function setObservacionReparacion(?string $observacionReparacion): self
  67.     {
  68.         $this->observacionReparacion $observacionReparacion;
  69.         return $this;
  70.     }
  71.     public function isRealizada(): ?bool
  72.     {
  73.         return $this->realizada;
  74.     }
  75.     public function setRealizada(bool $realizada): self
  76.     {
  77.         $this->realizada $realizada;
  78.         return $this;
  79.     }
  80.     public function getPedido(): ?PedidoReparacion
  81.     {
  82.         return $this->pedido;
  83.     }
  84.     public function setPedido(?PedidoReparacion $pedido): self
  85.     {
  86.         $this->pedido $pedido;
  87.         return $this;
  88.     }
  89.     public function getDiagrama(): ?DiagramaTarea
  90.     {
  91.         return $this->diagrama;
  92.     }
  93.     public function setDiagrama(?DiagramaTarea $diagrama): self
  94.     {
  95.         $this->diagrama $diagrama;
  96.         return $this;
  97.     }
  98.     public function getFecha(): ?\DateTimeInterface
  99.     {
  100.         return $this->fecha;
  101.     }
  102.     public function setFecha(?\DateTimeInterface $fecha): self
  103.     {
  104.         $this->fecha $fecha;
  105.         return $this;
  106.     }
  107.     public function getEquipo(): ?Maquinaria
  108.     {
  109.         return $this->equipo;
  110.     }
  111.     public function setEquipo(?Maquinaria $equipo): self
  112.     {
  113.         $this->equipo $equipo;
  114.         return $this;
  115.     }
  116. }