src/Entity/Estrazioni.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EstrazioniRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassEstrazioniRepository::class)]
  7. class Estrazioni
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  14.     private ?\DateTimeInterface $data_estrazione null;
  15.     #[ORM\ManyToOne(inversedBy'estrazionis')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?Users $user null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $path null;
  20.     #[ORM\ManyToOne(inversedBy'estrazionis')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?UsersAmbienti $ambiente null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  24.     private ?\DateTimeInterface $date_from null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  26.     private ?\DateTimeInterface $date_to null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getDataEstrazione(): ?\DateTimeInterface
  32.     {
  33.         return $this->data_estrazione;
  34.     }
  35.     public function setDataEstrazione(\DateTimeInterface $data_estrazione): static
  36.     {
  37.         $this->data_estrazione $data_estrazione;
  38.         return $this;
  39.     }
  40.     public function getUser(): ?Users
  41.     {
  42.         return $this->user;
  43.     }
  44.     public function setUser(?Users $user): static
  45.     {
  46.         $this->user $user;
  47.         return $this;
  48.     }
  49.     public function getPath(): ?string
  50.     {
  51.         return $this->path;
  52.     }
  53.     public function setPath(string $path): static
  54.     {
  55.         $this->path $path;
  56.         return $this;
  57.     }
  58.     public function getAmbiente(): ?UsersAmbienti
  59.     {
  60.         return $this->ambiente;
  61.     }
  62.     public function setAmbiente(?UsersAmbienti $ambiente): static
  63.     {
  64.         $this->ambiente $ambiente;
  65.         return $this;
  66.     }
  67.     public function getDateFrom(): ?\DateTimeInterface
  68.     {
  69.         return $this->date_from;
  70.     }
  71.     public function setDateFrom(\DateTimeInterface $date_from): static
  72.     {
  73.         $this->date_from $date_from;
  74.         return $this;
  75.     }
  76.     public function getDateTo(): ?\DateTimeInterface
  77.     {
  78.         return $this->date_to;
  79.     }
  80.     public function setDateTo(\DateTimeInterface $date_to): static
  81.     {
  82.         $this->date_to $date_to;
  83.         return $this;
  84.     }
  85. }