src/Entity/MantencionPeriodo.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MantencionPeriodoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMantencionPeriodoRepository::class)]
  6. class MantencionPeriodo
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\Column(type'smallint')]
  13.     private ?int $mes null;
  14.     #[ORM\Column(type'smallint')]
  15.     private ?int $ano null;
  16.     #[ORM\Column(type'datetime')]
  17.     private ?\DateTimeInterface $fechaDesde null;
  18.     #[ORM\Column(type'datetime')]
  19.     private ?\DateTimeInterface $fechaHasta null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getMes(): ?int
  25.     {
  26.         return $this->mes;
  27.     }
  28.     public function setMes(int $mes): self
  29.     {
  30.         $this->mes $mes;
  31.         return $this;
  32.     }
  33.     public function getAno(): ?int
  34.     {
  35.         return $this->ano;
  36.     }
  37.     public function setAno(int $ano): self
  38.     {
  39.         $this->ano $ano;
  40.         return $this;
  41.     }
  42.     public function getFechaDesde(): ?\DateTimeInterface
  43.     {
  44.         return $this->fechaDesde;
  45.     }
  46.     public function setFechaDesde(\DateTimeInterface $fechaDesde): self
  47.     {
  48.         $this->fechaDesde $fechaDesde;
  49.         return $this;
  50.     }
  51.     public function getFechaHasta(): ?\DateTimeInterface
  52.     {
  53.         return $this->fechaHasta;
  54.     }
  55.     public function setFechaHasta(\DateTimeInterface $fechaHasta): self
  56.     {
  57.         $this->fechaHasta $fechaHasta;
  58.         return $this;
  59.     }
  60. }