<?php
namespace App\Entity\Mantenimiento\Preventivo;
use App\Repository\Mantenimiento\Preventivo\TareaPlanDiagramadaRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TareaPlanDiagramadaRepository::class)
*/
class TareaPlanDiagramada
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $detalle;
/**
* @ORM\Column(type="boolean")
*/
private $realizada = true;
/**
* @ORM\ManyToOne(targetEntity=TareaPlan::class)
* @ORM\JoinColumn(name="id_tarea", referencedColumnName="id")
*/
private $tareaPlan;
/**
* @ORM\ManyToOne(targetEntity=PlanMantenimientoDiagramado::class, inversedBy="tareasDiagramadas")
* @ORM\JoinColumn(name="id_plan_diagramado", referencedColumnName="id")
*/
private $planMantenimientoDiagramado;
public function getId(): ?int
{
return $this->id;
}
public function getDetalle(): ?string
{
return $this->detalle;
}
public function setDetalle(?string $detalle): self
{
$this->detalle = $detalle;
return $this;
}
public function isRealizada(): ?bool
{
return $this->realizada;
}
public function setRealizada(bool $realizada): self
{
$this->realizada = $realizada;
return $this;
}
public function getTareaPlan(): ?TareaPlan
{
return $this->tareaPlan;
}
public function setTareaPlan(?TareaPlan $tareaPlan): self
{
$this->tareaPlan = $tareaPlan;
return $this;
}
public function getPlanMantenimientoDiagramado(): ?PlanMantenimientoDiagramado
{
return $this->planMantenimientoDiagramado;
}
public function setPlanMantenimientoDiagramado(?PlanMantenimientoDiagramado $planMantenimientoDiagramado): self
{
$this->planMantenimientoDiagramado = $planMantenimientoDiagramado;
return $this;
}
}