src/Entity/MantencionHistorial.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MantencionHistorialRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMantencionHistorialRepository::class)]
  6. class MantencionHistorial
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityMantencionIncidencia::class, inversedBy'mantencionHistorials')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?MantencionIncidencia $incidencia null;
  15.     #[ORM\Column(type'datetime')]
  16.     private ?\DateTimeInterface $fecha null;
  17.     #[ORM\Column(type'string'length255)]
  18.     private ?string $usuario null;
  19.     #[ORM\ManyToOne(targetEntityMantencionEstado::class)]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?MantencionEstado $estado null;
  22.     #[ORM\Column(type'smallint'nullabletrue)]
  23.     private ?int $horasEstimadas null;
  24.     #[ORM\Column(type'boolean'nullabletrue)]
  25.     private ?bool $esAutorizada null;
  26.     #[ORM\Column(type'smallint'nullabletrue)]
  27.     private ?int $horasEjecucion null;
  28.     #[ORM\Column(type'boolean'nullabletrue)]
  29.     private ?bool $esAprobada null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getIncidencia(): ?MantencionIncidencia
  35.     {
  36.         return $this->incidencia;
  37.     }
  38.     public function setIncidencia(?MantencionIncidencia $incidencia): self
  39.     {
  40.         $this->incidencia $incidencia;
  41.         return $this;
  42.     }
  43.     public function getFecha(): ?\DateTimeInterface
  44.     {
  45.         return $this->fecha;
  46.     }
  47.     public function setFecha(\DateTimeInterface $fecha): self
  48.     {
  49.         $this->fecha $fecha;
  50.         return $this;
  51.     }
  52.     public function getUsuario(): ?string
  53.     {
  54.         return $this->usuario;
  55.     }
  56.     public function setUsuario(string $usuario): self
  57.     {
  58.         $this->usuario $usuario;
  59.         return $this;
  60.     }
  61.     public function getEstado(): ?MantencionEstado
  62.     {
  63.         return $this->estado;
  64.     }
  65.     public function setEstado(?MantencionEstado $estado): self
  66.     {
  67.         $this->estado $estado;
  68.         return $this;
  69.     }
  70.     public function getHorasEstimadas(): ?int
  71.     {
  72.         return $this->horasEstimadas;
  73.     }
  74.     public function setHorasEstimadas(?int $horasEstimadas): self
  75.     {
  76.         $this->horasEstimadas $horasEstimadas;
  77.         return $this;
  78.     }
  79.     public function getEsAutorizada(): ?bool
  80.     {
  81.         return $this->esAutorizada;
  82.     }
  83.     public function setEsAutorizada(?bool $esAutorizada): self
  84.     {
  85.         $this->esAutorizada $esAutorizada;
  86.         return $this;
  87.     }
  88.     public function getHorasEjecucion(): ?int
  89.     {
  90.         return $this->horasEjecucion;
  91.     }
  92.     public function setHorasEjecucion(?int $horasEjecucion): self
  93.     {
  94.         $this->horasEjecucion $horasEjecucion;
  95.         return $this;
  96.     }
  97.     public function getEsAprobada(): ?bool
  98.     {
  99.         return $this->esAprobada;
  100.     }
  101.     public function setEsAprobada(?bool $esAprobada): self
  102.     {
  103.         $this->esAprobada $esAprobada;
  104.         return $this;
  105.     }
  106. }