src/Entity/EUmowaRodo/Umowy.php line 9

  1. <?php
  2. namespace App\Entity\EUmowaRodo;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity]
  5. #[ORM\Table(name'umowy')]
  6. class Umowy
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\Column(type'string'length256)]
  13.     private string $token;
  14.     #[ORM\Column(name'data_utworzenia'type'datetime_immutable')]
  15.     private \DateTimeImmutable $data_utworzenia;
  16.     #[ORM\Column(type'string'length256)]
  17.     private string $email;
  18.     #[ORM\Column(name'nr_umowy'type'string'length256)]
  19.     private string $nrUmowy;
  20.     #[ORM\Column(type'string'length256)]
  21.     private string $nazwa;
  22.     #[ORM\Column(type'string'length256)]
  23.     private string $ulica;
  24.     #[ORM\Column(type'string'length256)]
  25.     private string $miasto;
  26.     #[ORM\Column(type'string'length6)]
  27.     private string $kod;
  28.     #[ORM\Column(type'string'length256)]
  29.     private string $nip;
  30.     #[ORM\Column(type'string'length11)]
  31.     private string $regon;
  32.     #[ORM\Column(name'kwota_netto',type'string'length256nullablefalse)]
  33.     private ?string $kwotaNetto null;
  34.     #[ORM\Column(name'kwota_vat',type'string'length256nullablefalse)]
  35.     private ?string $kwotaVat null;
  36.     #[ORM\Column(type'string'length256nullabletrue)]
  37.     private ?string $notatka null;
  38.     #[ORM\Column(type'integer'options: ['default' => 0])]
  39.     private int $wczytania 0;
  40.     #[ORM\Column(name'data_akceptacji'type'datetime_immutable'nullabletrue)]
  41.     private ?\DateTimeImmutable $dataAkceptacji null;
  42.     #[ORM\Column(type'integer'options: ['default' => 1])]
  43.     private int $oddzial 1;
  44.     #[ORM\Column(name'typ_id'type'integer')]
  45.     private int $typId;
  46.     #[ORM\Column(name'nr_zam'type'integer')]
  47.     private int $nrZam;
  48.     #[ORM\Column(name'termin_platnosci'type'integer')]
  49.     private int $terminPlatnosci;
  50.     #[ORM\Column(name'automatyczniePrzedluzana'type'integer'options: ['default' => 0])]
  51.     private int $automatyczniePrzedluzana 0;
  52.     #[ORM\Column(name'liczba_miesiecy'type'integer')]
  53.     private int $liczbaMiesiecy;
  54.     #[ORM\Column(name'dodatkowy_produkt'type'string'length256)]
  55.     private ?string $dodatkowyProdukt;
  56.     #[ORM\Column(name'data_startu_umowy'type'datetime_immutable'nullabletrue)]
  57.     private ?\DateTimeImmutable $dataStartuUmowy null;
  58.     public function __construct()
  59.     {
  60.         $this->data_utworzenia = new \DateTimeImmutable();
  61.     }
  62.     // ---------------- Gettery / Settery ----------------
  63.     public function getId(): ?int { return $this->id; }
  64.     public function getToken(): string { return $this->token; }
  65.     public function setToken(string $token): self $this->token $token; return $this; }
  66.     public function getData_Utworzenia(): \DateTimeImmutable { return $this->data_utworzenia; }
  67.     public function setData_Utworzenia(\DateTimeImmutable $d): self $this->data_utworzenia $d; return $this; }
  68.     public function getEmail(): string { return $this->email; }
  69.     public function setEmail(string $email): self $this->email $email; return $this; }
  70.     public function getNrUmowy(): string { return $this->nrUmowy; }
  71.     public function setNrUmowy(string $nrUmowy): self $this->nrUmowy $nrUmowy; return $this; }
  72.     public function getNazwa(): string { return $this->nazwa; }
  73.     public function setNazwa(string $nazwa): self $this->nazwa $nazwa; return $this; }
  74.     public function getUlica(): string { return $this->ulica; }
  75.     public function setUlica(string $ulica): self $this->ulica $ulica; return $this; }
  76.     public function getMiasto(): string { return $this->miasto; }
  77.     public function setMiasto(string $miasto): self $this->miasto $miasto; return $this; }
  78.     public function getKod(): string { return $this->kod; }
  79.     public function setKod(string $kod): self $this->kod $kod; return $this; }
  80.     public function getNip(): string { return $this->nip; }
  81.     public function setNip(string $nip): self $this->nip $nip; return $this; }
  82.     public function getRegon(): string { return $this->regon; }
  83.     public function setRegon(string $regon): self $this->regon $regon; return $this; }
  84.     public function getNotatka(): ?string { return $this->notatka; }
  85.     public function setNotatka(?string $notatka): self $this->notatka $notatka; return $this; }
  86.     public function getKwota_Netto(): ?string
  87.     {
  88.         return $this->kwotaNetto;
  89.     }
  90.     public function setKwotaNetto(?string $kwotaNetto): void
  91.     {
  92.         $this->kwotaNetto $kwotaNetto;
  93.     }
  94.     public function getKwota_Vat(): ?string
  95.     {
  96.         return $this->kwotaVat;
  97.     }
  98.     public function setKwotaVat(?string $kwotaVat): void
  99.     {
  100.         $this->kwotaVat $kwotaVat;
  101.     }
  102.     public function getWczytania(): int { return $this->wczytania; }
  103.     public function setWczytania(int $wczytania): self $this->wczytania $wczytania; return $this; }
  104.     public function getDataAkceptacji(): ?\DateTimeImmutable { return $this->dataAkceptacji; }
  105.     public function setDataAkceptacji(?\DateTimeImmutable $d): self $this->dataAkceptacji $d; return $this; }
  106.     public function getOddzial(): int { return $this->oddzial; }
  107.     public function setOddzial(int $oddzial): self $this->oddzial $oddzial; return $this; }
  108.     public function getTypId(): int { return $this->typId; }
  109.     public function setTypId(int $typId): self $this->typId $typId; return $this; }
  110.     public function getNrZam(): int { return $this->nrZam; }
  111.     public function setNrZam(int $nrZam): self $this->nrZam $nrZam; return $this; }
  112.     public function getTermin_Platnosci(): int { return $this->terminPlatnosci; }
  113.     public function setTerminPlatnosci(int $terminPlatnosci): self $this->terminPlatnosci $terminPlatnosci; return $this; }
  114.     public function getAutomatyczniePrzedluzana(): int { return $this->automatyczniePrzedluzana; }
  115.     public function setAutomatyczniePrzedluzana(int $v): self $this->automatyczniePrzedluzana $v; return $this; }
  116.     public function getLiczba_Miesiecy(): int { return $this->liczbaMiesiecy; }
  117.     public function setLiczbaMiesiecy(int $liczba): self $this->liczbaMiesiecy $liczba; return $this; }
  118.     public function getDodatkowy_Produkt(): ?string { return $this->dodatkowyProdukt; }
  119.     public function setDodatkowyProdukt(?string $d): self $this->dodatkowyProdukt $d; return $this; }
  120.     public function getDataStartuUmowy(): ?\DateTimeImmutable
  121.     {
  122.         return $this->dataStartuUmowy;
  123.     }
  124.     public function getData_Startu_Umowy(): ?\DateTimeImmutable
  125.     {
  126.         return $this->dataStartuUmowy;
  127.     }
  128.     public function setDataStartuUmowy(?\DateTimeImmutable $dataStartuUmowy): void
  129.     {
  130.         $this->dataStartuUmowy $dataStartuUmowy;
  131.     }
  132. }