src/Entity/EUmowaLicencyjneWebAmlNieruchomosci/Umowy.php line 9

  1. <?php
  2. namespace App\Entity\EUmowaLicencyjneWebAmlNieruchomosci;
  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(type'string'length256nullabletrue)]
  33.     private ?string $notatka null;
  34.     #[ORM\Column(type'integer'options: ['default' => 0])]
  35.     private int $wczytania 0;
  36.     #[ORM\Column(name'data_akceptacji'type'datetime_immutable'nullabletrue)]
  37.     private ?\DateTimeImmutable $dataAkceptacji null;
  38.     #[ORM\Column(type'integer'options: ['default' => 1])]
  39.     private int $oddzial 1;
  40.     #[ORM\Column(name'typ_id'type'integer')]
  41.     private int $typId;
  42.     #[ORM\Column(name'nr_zam'type'integer')]
  43.     private int $nrZam;
  44.     #[ORM\Column(type'string'length256)]
  45.     private string $wynagrodzenie;
  46.     #[ORM\Column(name'terminplatnosci'type'integer')]
  47.     private int $terminPlatnosci;
  48.     #[ORM\Column(name'automatyczniePrzedluzana'type'integer'options: ['default' => 0])]
  49.     private int $automatyczniePrzedluzana 0;
  50.     #[ORM\Column(name'liczba_miesiecy'type'integer')]
  51.     private int $liczbaMiesiecy;
  52.     #[ORM\Column(name'dodatkowy_produkt'type'string'length256)]
  53.     private string $dodatkowyProdukt;
  54.     // ================= DODANE BRAKUJACE POLA =================
  55.     #[ORM\Column(type'integer')]
  56.     private int $pakietbhp;
  57.     #[ORM\Column(name'liczba_klientow'type'integer')]
  58.     private int $liczbaKlientow;
  59.     #[ORM\Column(name'liczba_stanowisk'type'integer')]
  60.     private int $liczbaStanowisk;
  61.     #[ORM\Column(type'string'length256)]
  62.     private string $zamawiajacy;
  63.     #[ORM\Column(name'zamawiajacy_telefon'type'string'length256)]
  64.     private string $zamawiajacyTelefon;
  65.     #[ORM\Column(name'zamawiajacy_email'type'string'length256)]
  66.     private string $zamawiajacyEmail;
  67.     #[ORM\Column(name'data_startu_umowy'type'datetime_immutable'nullabletrue)]
  68.     private ?\DateTimeImmutable $dataStartuUmowy null;
  69.     // ==========================================================
  70.     public function __construct()
  71.     {
  72.         $this->data_utworzenia = new \DateTimeImmutable();
  73.     }
  74.     // -------- Gettery / Settery (TYLKO DODANE POLA) --------
  75.     public function getPakietbhp(): int
  76.     {
  77.         return $this->pakietbhp;
  78.     }
  79.     public function setPakietbhp(int $pakietbhp): self
  80.     {
  81.         $this->pakietbhp $pakietbhp;
  82.         return $this;
  83.     }
  84.     public function getLiczbaKlientow(): int
  85.     {
  86.         return $this->liczbaKlientow;
  87.     }
  88.     public function setLiczbaKlientow(int $liczbaKlientow): self
  89.     {
  90.         $this->liczbaKlientow $liczbaKlientow;
  91.         return $this;
  92.     }
  93.     public function getLiczbaStanowisk(): int
  94.     {
  95.         return $this->liczbaStanowisk;
  96.     }
  97.     public function setLiczbaStanowisk(int $liczbaStanowisk): self
  98.     {
  99.         $this->liczbaStanowisk $liczbaStanowisk;
  100.         return $this;
  101.     }
  102.     public function getZamawiajacy(): string
  103.     {
  104.         return $this->zamawiajacy;
  105.     }
  106.     public function setZamawiajacy(string $zamawiajacy): self
  107.     {
  108.         $this->zamawiajacy $zamawiajacy;
  109.         return $this;
  110.     }
  111.     public function getZamawiajacyTelefon(): string
  112.     {
  113.         return $this->zamawiajacyTelefon;
  114.     }
  115.     public function setZamawiajacyTelefon(string $zamawiajacyTelefon): self
  116.     {
  117.         $this->zamawiajacyTelefon $zamawiajacyTelefon;
  118.         return $this;
  119.     }
  120.     public function getZamawiajacyEmail(): string
  121.     {
  122.         return $this->zamawiajacyEmail;
  123.     }
  124.     public function setZamawiajacyEmail(string $zamawiajacyEmail): self
  125.     {
  126.         $this->zamawiajacyEmail $zamawiajacyEmail;
  127.         return $this;
  128.     }
  129.     public function getDataStartuUmowy(): ?\DateTimeImmutable
  130.     {
  131.         return $this->dataStartuUmowy;
  132.     }
  133.     public function setDataStartuUmowy(?\DateTimeImmutable $dataStartuUmowy): self
  134.     {
  135.         $this->dataStartuUmowy $dataStartuUmowy;
  136.         return $this;
  137.     }
  138. }