<?phpnamespace App\Entity\Mantenimiento;use App\Repository\Mantenimiento\PedidoReparacionDiagramadoRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use App\Entity\Equipos\Maquinaria;/** * @ORM\Entity(repositoryClass=PedidoReparacionDiagramadoRepository::class) */class PedidoReparacionDiagramado{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="date", nullable=true) */ private $fecha; /** * @ORM\Column(type="text", nullable=true) */ private $observacionResponsable; /** * @ORM\Column(type="text", nullable=true) */ private $observacionReparacion; //Representa la respuesta por parte de quiem realizo la tarea /** * @ORM\Column(type="boolean") */ private $realizada = false; /** * @ORM\ManyToOne(targetEntity=PedidoReparacion::class, inversedBy="pedidosDiagramados") * @ORM\JoinColumn(name="id_pedido", referencedColumnName="id") */ private $pedido; /** * @ORM\ManyToOne(targetEntity=DiagramaTarea::class, inversedBy="tareas") * @ORM\JoinColumn(name="id_diagrama", referencedColumnName="id") */ private $diagrama; /** * @ORM\ManyToOne(targetEntity=Maquinaria::class) * @ORM\JoinColumn(name="id_equipo", referencedColumnName="id", nullable=true) */ private $equipo; public function getId(): ?int { return $this->id; } public function getObservacionResponsable(): ?string { return $this->observacionResponsable; } public function setObservacionResponsable(?string $observacionResponsable): self { $this->observacionResponsable = $observacionResponsable; return $this; } public function getObservacionReparacion(): ?string { return $this->observacionReparacion; } public function setObservacionReparacion(?string $observacionReparacion): self { $this->observacionReparacion = $observacionReparacion; return $this; } public function isRealizada(): ?bool { return $this->realizada; } public function setRealizada(bool $realizada): self { $this->realizada = $realizada; return $this; } public function getPedido(): ?PedidoReparacion { return $this->pedido; } public function setPedido(?PedidoReparacion $pedido): self { $this->pedido = $pedido; return $this; } public function getDiagrama(): ?DiagramaTarea { return $this->diagrama; } public function setDiagrama(?DiagramaTarea $diagrama): self { $this->diagrama = $diagrama; return $this; } public function getFecha(): ?\DateTimeInterface { return $this->fecha; } public function setFecha(?\DateTimeInterface $fecha): self { $this->fecha = $fecha; return $this; } public function getEquipo(): ?Maquinaria { return $this->equipo; } public function setEquipo(?Maquinaria $equipo): self { $this->equipo = $equipo; return $this; }}