src/Entity/Platforma/User.php line 13

  1. <?php
  2. namespace App\Entity\Platforma;
  3. use App\Repository\Platforma\UserRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassUserRepository::class)]
  9. #[ORM\Table(name"plat_user")]
  10. class User
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $userId null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $login null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $password null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $imie null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $nazwisko null;
  24.     #[ORM\Column]
  25.     private ?int $oddzial null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $data_urodzenia null;
  28.     #[ORM\Column(length255)]
  29.     private ?string $miejsce_urodzenia null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $wojewodztwo null;
  32.     #[ORM\Column(length255)]
  33.     private ?string $nazwa null;
  34.     #[ORM\Column(length255)]
  35.     private ?string $miasto null;
  36.     #[ORM\Column(length255)]
  37.     private ?string $kod_pocztowy null;
  38.     #[ORM\Column(length255)]
  39.     private ?string $ulica null;
  40.     #[ORM\Column(length255)]
  41.     private ?string $nip null;
  42.     #[ORM\Column]
  43.     private ?int $grupa null;
  44.     #[ORM\Column]
  45.     private ?int $status null;
  46.     #[ORM\Column]
  47.     private ?int $data_rejestracji null;
  48.     #[ORM\Column(length255)]
  49.     private ?string $email null;
  50.     #[ORM\Column]
  51.     private ?int $data_logowania null;
  52.     #[ORM\Column]
  53.     private ?int $zalogowany null;
  54.     #[ORM\Column]
  55.     private ?int $zmiana_hasla null;
  56.     #[ORM\Column(length255)]
  57.     private ?string $ip null;
  58.     #[ORM\Column(length255)]
  59.     private ?string $telefon null;
  60.     #[ORM\Column(length255)]
  61.     private ?string $powiazane null;
  62.     #[ORM\Column]
  63.     private ?int $zgoda_dane null;
  64.     #[ORM\Column]
  65.     private ?int $zgoda_marketingowa null;
  66.     #[ORM\Column(typeTypes::TEXT)]
  67.     private ?string $dod_opis null;
  68.     #[ORM\Column(length255)]
  69.     private ?string $login_przelozonego null;
  70.     #[ORM\Column(typeTypes::TEXT)]
  71.     private ?string $notatki null;
  72.     #[ORM\Column(length255)]
  73.     private ?string $pesel null;
  74.     #[ORM\Column(nullabletrue)]
  75.     private ?int $pododdzial null;
  76.     #[ORM\Column(length255)]
  77.     private ?string $nip_dodatkowy null;
  78.     #[ORM\Column(name"KodPocztowyZamieszkania"length255)]
  79.     private ?string $KodPocztowyZamieszkania null;
  80.     #[ORM\Column(name"MiejscowoscZamieszkania"length255nullabletrue)]
  81.     private ?string $MiejscowoscZamieszkania null;
  82.     #[ORM\Column(name"UlicaZamieszkania",length255nullabletrue)]
  83.     private ?string $UlicaZamieszkania null;
  84.     #[ORM\Column]
  85.     private ?int $published null;
  86.     #[ORM\Column]
  87.     private ?bool $klauzula_informacyjna null;
  88.     #[ORM\Column(length255nullabletrue)]
  89.     private ?string $token null;
  90.     #[ORM\Column]
  91.     private ?int $dostep_biura null;
  92.     #[ORM\Column(length255)]
  93.     private ?string $nazwa_specjalna null;
  94.     #[ORM\OneToMany(mappedBy'user'targetEntityUserSzkolenia::class)]
  95.     private Collection $userSzkolenia;
  96.     public function __construct()
  97.     {
  98.         $this->userSzkolenia = new ArrayCollection();
  99.         $this->nazwa_specjalna '';
  100.         $this->dostep_biura 0;
  101.         $this->published 1;
  102.         $this->ulicaZamieszkania NULL;
  103.         $this->miejscowoscZamieszkania NULL;
  104.         $this->kodPocztowyZamieszkania NULL;
  105.         $this->nip_dodatkowy '';
  106.         $this->pododdzial NULL;
  107.         $this->pesel 0;
  108.         $this->notatki '';
  109.         $this->login_przelozonego '';
  110.         $this->dod_opis '';
  111.         $this->grupa 1;
  112.         $this->regulations 1;
  113.         $this->zgoda_dane 1;
  114.         $this->zgoda_marketingowa 0;
  115.         $this->data_logowania 0;
  116.         $this->zalogowany 0;
  117.         $this->zmiana_hasla 0;
  118.         $this->ip '';
  119.         $this->powiazane '';
  120.     }
  121.     public function getUserId(): ?int
  122.     {
  123.         return $this->userId;
  124.     }
  125.     public function getLogin(): ?string
  126.     {
  127.         return $this->login;
  128.     }
  129.     public function setLogin(string $login): static
  130.     {
  131.         $this->login $login;
  132.         return $this;
  133.     }
  134.     public function getPassword(): ?string
  135.     {
  136.         return $this->password;
  137.     }
  138.     public function setPassword(string $password): static
  139.     {
  140.         if($password !== '' || $password !== null) {
  141.             $hash '&epZ;HjnpL54';
  142.             $this->password md5($password '' $hash);
  143.         }
  144.         return $this;
  145.     }
  146.     public function getImie(): ?string
  147.     {
  148.         return $this->imie;
  149.     }
  150.     public function setImie(string $imie): static
  151.     {
  152.         $this->imie $imie;
  153.         return $this;
  154.     }
  155.     public function getNazwisko(): ?string
  156.     {
  157.         return $this->nazwisko;
  158.     }
  159.     public function setNazwisko(string $nazwisko): static
  160.     {
  161.         $this->nazwisko $nazwisko;
  162.         return $this;
  163.     }
  164.     public function getOddzial(): ?int
  165.     {
  166.         return $this->oddzial;
  167.     }
  168.     public function setOddzial(int $oddzial): static
  169.     {
  170.         $this->oddzial $oddzial;
  171.         return $this;
  172.     }
  173.     public function getDataUrodzenia(): ?string
  174.     {
  175.         return $this->data_urodzenia;
  176.     }
  177.     public function setDataUrodzenia(string $data_urodzenia): static
  178.     {
  179.         $this->data_urodzenia $data_urodzenia;
  180.         return $this;
  181.     }
  182.     public function getMiejsceUrodzenia(): ?string
  183.     {
  184.         return $this->miejsce_urodzenia;
  185.     }
  186.     public function setMiejsceUrodzenia(string $miejsce_urodzenia): static
  187.     {
  188.         $this->miejsce_urodzenia $miejsce_urodzenia;
  189.         return $this;
  190.     }
  191.     public function getWojewodztwo(): ?string
  192.     {
  193.         return $this->wojewodztwo;
  194.     }
  195.     public function setWojewodztwo(string $wojewodztwo): static
  196.     {
  197.         $this->wojewodztwo $wojewodztwo;
  198.         return $this;
  199.     }
  200.     public function getNazwa(): ?string
  201.     {
  202.         return $this->nazwa;
  203.     }
  204.     public function setNazwa(string $nazwa): static
  205.     {
  206.         $this->nazwa $nazwa;
  207.         return $this;
  208.     }
  209.     public function getMiasto(): ?string
  210.     {
  211.         return $this->miasto;
  212.     }
  213.     public function setMiasto(string $miasto): static
  214.     {
  215.         $this->miasto $miasto;
  216.         return $this;
  217.     }
  218.     public function getKodPocztowy(): ?string
  219.     {
  220.         return $this->kod_pocztowy;
  221.     }
  222.     public function setKodPocztowy(string $kod_pocztowy): static
  223.     {
  224.         $this->kod_pocztowy $kod_pocztowy;
  225.         return $this;
  226.     }
  227.     public function getUlica(): ?string
  228.     {
  229.         return $this->ulica;
  230.     }
  231.     public function setUlica(string $ulica): static
  232.     {
  233.         $this->ulica $ulica;
  234.         return $this;
  235.     }
  236.     public function getNip(): ?string
  237.     {
  238.         return $this->nip;
  239.     }
  240.     public function setNip(string $nip): static
  241.     {
  242.         $this->nip $nip;
  243.         return $this;
  244.     }
  245.     public function getGrupa(): ?int
  246.     {
  247.         return $this->grupa;
  248.     }
  249.     public function setGrupa(int $grupa): static
  250.     {
  251.         $this->grupa $grupa;
  252.         return $this;
  253.     }
  254.     public function getStatus(): ?int
  255.     {
  256.         return $this->status;
  257.     }
  258.     public function setStatus(int $status): static
  259.     {
  260.         $this->status $status;
  261.         return $this;
  262.     }
  263.     public function getDataRejestracji(): ?int
  264.     {
  265.         return $this->data_rejestracji;
  266.     }
  267.     public function setDataRejestracji(int $data_rejestracji): static
  268.     {
  269.         $this->data_rejestracji $data_rejestracji;
  270.         return $this;
  271.     }
  272.     public function getDataRejestracjiDate()
  273.     {
  274.         return date('d-m-Y H:i:s',$this->data_rejestracji);
  275.     }
  276.     public function getEmail(): ?string
  277.     {
  278.         return $this->email;
  279.     }
  280.     public function setEmail(string $email): static
  281.     {
  282.         $this->email $email;
  283.         return $this;
  284.     }
  285.     public function getDataLogowania(): ?int
  286.     {
  287.         return $this->data_logowania;
  288.     }
  289.     public function setDataLogowania(int $data_logowania): static
  290.     {
  291.         $this->data_logowania $data_logowania;
  292.         return $this;
  293.     }
  294.     public function getDataLogowaniaDate()
  295.     {
  296.         return date('d-m-Y H:i:s',$this->data_logowania);
  297.     }
  298.     public function getZalogowany(): ?int
  299.     {
  300.         return $this->zalogowany;
  301.     }
  302.     public function setZalogowany(int $zalogowany): static
  303.     {
  304.         $this->zalogowany $zalogowany;
  305.         return $this;
  306.     }
  307.     public function getZmianaHasla(): ?int
  308.     {
  309.         return $this->zmiana_hasla;
  310.     }
  311.     public function setZmianaHasla(int $zmiana_hasla): static
  312.     {
  313.         $this->zmiana_hasla $zmiana_hasla;
  314.         return $this;
  315.     }
  316.     public function getIp(): ?string
  317.     {
  318.         return $this->ip;
  319.     }
  320.     public function setIp(string $ip): static
  321.     {
  322.         $this->ip $ip;
  323.         return $this;
  324.     }
  325.     public function getTelefon(): ?string
  326.     {
  327.         return $this->telefon;
  328.     }
  329.     public function setTelefon(string $telefon): static
  330.     {
  331.         $this->telefon $telefon;
  332.         return $this;
  333.     }
  334.     public function getPowiazane(): ?string
  335.     {
  336.         return $this->powiazane;
  337.     }
  338.     public function setPowiazane(string $powiazane): static
  339.     {
  340.         $this->powiazane $powiazane;
  341.         return $this;
  342.     }
  343.     public function getZgodaDane(): ?int
  344.     {
  345.         return $this->zgoda_dane;
  346.     }
  347.     public function setZgodaDane(int $zgoda_dane): static
  348.     {
  349.         $this->zgoda_dane $zgoda_dane;
  350.         return $this;
  351.     }
  352.     public function getZgodaMarketingowa(): ?int
  353.     {
  354.         return $this->zgoda_marketingowa;
  355.     }
  356.     public function setZgodaMarketingowa(int $zgoda_marketingowa): static
  357.     {
  358.         $this->zgoda_marketingowa $zgoda_marketingowa;
  359.         return $this;
  360.     }
  361.     public function getDodOpis(): ?string
  362.     {
  363.         return $this->dod_opis;
  364.     }
  365.     public function setDodOpis(string $dod_opis): static
  366.     {
  367.         $this->dod_opis $dod_opis;
  368.         return $this;
  369.     }
  370.     public function getLoginPrzelozonego(): ?string
  371.     {
  372.         return $this->login_przelozonego;
  373.     }
  374.     public function setLoginPrzelozonego(string $login_przelozonego): static
  375.     {
  376.         $this->login_przelozonego $login_przelozonego;
  377.         return $this;
  378.     }
  379.     public function getNotatki(): ?string
  380.     {
  381.         return $this->notatki;
  382.     }
  383.     public function setNotatki(string $notatki): static
  384.     {
  385.         $this->notatki $notatki;
  386.         return $this;
  387.     }
  388.     public function getPesel(): ?string
  389.     {
  390.         return $this->pesel;
  391.     }
  392.     public function setPesel(string $pesel): static
  393.     {
  394.         $this->pesel $pesel;
  395.         return $this;
  396.     }
  397.     public function getPododdzial(): ?int
  398.     {
  399.         return $this->pododdzial;
  400.     }
  401.     public function setPododdzial(?int $pododdzial): static
  402.     {
  403.         $this->pododdzial $pododdzial;
  404.         return $this;
  405.     }
  406.     public function getNipDodatkowy(): ?string
  407.     {
  408.         return $this->nip_dodatkowy;
  409.     }
  410.     public function setNipDodatkowy(string $nip_dodatkowy): static
  411.     {
  412.         $this->nip_dodatkowy $nip_dodatkowy;
  413.         return $this;
  414.     }
  415.     public function getKodPocztowyZamieszkania(): ?string
  416.     {
  417.         return $this->KodPocztowyZamieszkania;
  418.     }
  419.     public function setKodPocztowyZamieszkania(string $KodPocztowyZamieszkania): static
  420.     {
  421.         $this->KodPocztowyZamieszkania $KodPocztowyZamieszkania;
  422.         return $this;
  423.     }
  424.     public function getMiejscowoscZamieszkania(): ?string
  425.     {
  426.         return $this->MiejscowoscZamieszkania;
  427.     }
  428.     public function setMiejscowoscZamieszkania(?string $MiejscowoscZamieszkania): static
  429.     {
  430.         $this->MiejscowoscZamieszkania $MiejscowoscZamieszkania;
  431.         return $this;
  432.     }
  433.     public function getUlicaZamieszkania(): ?string
  434.     {
  435.         return $this->UlicaZamieszkania;
  436.     }
  437.     public function setUlicaZamieszkania(?string $UlicaZamieszkania): static
  438.     {
  439.         $this->UlicaZamieszkania $UlicaZamieszkania;
  440.         return $this;
  441.     }
  442.     public function getPublished(): ?int
  443.     {
  444.         return $this->published;
  445.     }
  446.     public function setPublished(int $published): static
  447.     {
  448.         $this->published $published;
  449.         return $this;
  450.     }
  451.     public function isKlauzulaInformacyjna(): ?bool
  452.     {
  453.         return $this->klauzula_informacyjna;
  454.     }
  455.     public function setKlauzulaInformacyjna(bool $klauzula_informacyjna): static
  456.     {
  457.         $this->klauzula_informacyjna $klauzula_informacyjna;
  458.         return $this;
  459.     }
  460.     public function getToken(): ?string
  461.     {
  462.         return $this->token;
  463.     }
  464.     public function setToken(?string $token): static
  465.     {
  466.         $this->token $token;
  467.         return $this;
  468.     }
  469.     public function getDostepBiura(): ?int
  470.     {
  471.         return $this->dostep_biura;
  472.     }
  473.     public function setDostepBiura(int $dostep_biura): static
  474.     {
  475.         $this->dostep_biura $dostep_biura;
  476.         return $this;
  477.     }
  478.     public function getNazwaSpecjalna(): ?string
  479.     {
  480.         return $this->nazwa_specjalna;
  481.     }
  482.     public function setNazwaSpecjalna(string $nazwa_specjalna): static
  483.     {
  484.         $this->nazwa_specjalna $nazwa_specjalna;
  485.         return $this;
  486.     }
  487.     /**
  488.      * @return Collection<int, UserSzkolenia>
  489.      */
  490.     public function getUserSzkolenia(): Collection
  491.     {
  492.         return $this->userSzkolenia;
  493.     }
  494. }