src/Entity/Platforma/User.php line 13
<?phpnamespace App\Entity\Platforma;use App\Repository\Platforma\UserRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserRepository::class)]#[ORM\Table(name: "plat_user")]class User{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $userId = null;#[ORM\Column(length: 255)]private ?string $login = null;#[ORM\Column(length: 255)]private ?string $password = null;#[ORM\Column(length: 255)]private ?string $imie = null;#[ORM\Column(length: 255)]private ?string $nazwisko = null;#[ORM\Column]private ?int $oddzial = null;#[ORM\Column(length: 255)]private ?string $data_urodzenia = null;#[ORM\Column(length: 255)]private ?string $miejsce_urodzenia = null;#[ORM\Column(length: 255)]private ?string $wojewodztwo = null;#[ORM\Column(length: 255)]private ?string $nazwa = null;#[ORM\Column(length: 255)]private ?string $miasto = null;#[ORM\Column(length: 255)]private ?string $kod_pocztowy = null;#[ORM\Column(length: 255)]private ?string $ulica = null;#[ORM\Column(length: 255)]private ?string $nip = null;#[ORM\Column]private ?int $grupa = null;#[ORM\Column]private ?int $status = null;#[ORM\Column]private ?int $data_rejestracji = null;#[ORM\Column(length: 255)]private ?string $email = null;#[ORM\Column]private ?int $data_logowania = null;#[ORM\Column]private ?int $zalogowany = null;#[ORM\Column]private ?int $zmiana_hasla = null;#[ORM\Column(length: 255)]private ?string $ip = null;#[ORM\Column(length: 255)]private ?string $telefon = null;#[ORM\Column(length: 255)]private ?string $powiazane = null;#[ORM\Column]private ?int $zgoda_dane = null;#[ORM\Column]private ?int $zgoda_marketingowa = null;#[ORM\Column(type: Types::TEXT)]private ?string $dod_opis = null;#[ORM\Column(length: 255)]private ?string $login_przelozonego = null;#[ORM\Column(type: Types::TEXT)]private ?string $notatki = null;#[ORM\Column(length: 255)]private ?string $pesel = null;#[ORM\Column(nullable: true)]private ?int $pododdzial = null;#[ORM\Column(length: 255)]private ?string $nip_dodatkowy = null;#[ORM\Column(name: "KodPocztowyZamieszkania", length: 255)]private ?string $KodPocztowyZamieszkania = null;#[ORM\Column(name: "MiejscowoscZamieszkania", length: 255, nullable: true)]private ?string $MiejscowoscZamieszkania = null;#[ORM\Column(name: "UlicaZamieszkania",length: 255, nullable: true)]private ?string $UlicaZamieszkania = null;#[ORM\Column]private ?int $published = null;#[ORM\Column]private ?bool $klauzula_informacyjna = null;#[ORM\Column(length: 255, nullable: true)]private ?string $token = null;#[ORM\Column]private ?int $dostep_biura = null;#[ORM\Column(length: 255)]private ?string $nazwa_specjalna = null;#[ORM\OneToMany(mappedBy: 'user', targetEntity: UserSzkolenia::class)]private Collection $userSzkolenia;public function __construct(){$this->userSzkolenia = new ArrayCollection();$this->nazwa_specjalna = '';$this->dostep_biura = 0;$this->published = 1;$this->ulicaZamieszkania = NULL;$this->miejscowoscZamieszkania = NULL;$this->kodPocztowyZamieszkania = NULL;$this->nip_dodatkowy = '';$this->pododdzial = NULL;$this->pesel = 0;$this->notatki = '';$this->login_przelozonego = '';$this->dod_opis = '';$this->grupa = 1;$this->regulations = 1;$this->zgoda_dane = 1;$this->zgoda_marketingowa = 0;$this->data_logowania = 0;$this->zalogowany = 0;$this->zmiana_hasla = 0;$this->ip = '';$this->powiazane = '';}public function getUserId(): ?int{return $this->userId;}public function getLogin(): ?string{return $this->login;}public function setLogin(string $login): static{$this->login = $login;return $this;}public function getPassword(): ?string{return $this->password;}public function setPassword(string $password): static{if($password !== '' || $password !== null) {$hash = '&epZ;HjnpL54';$this->password = md5($password . '' . $hash);}return $this;}public function getImie(): ?string{return $this->imie;}public function setImie(string $imie): static{$this->imie = $imie;return $this;}public function getNazwisko(): ?string{return $this->nazwisko;}public function setNazwisko(string $nazwisko): static{$this->nazwisko = $nazwisko;return $this;}public function getOddzial(): ?int{return $this->oddzial;}public function setOddzial(int $oddzial): static{$this->oddzial = $oddzial;return $this;}public function getDataUrodzenia(): ?string{return $this->data_urodzenia;}public function setDataUrodzenia(string $data_urodzenia): static{$this->data_urodzenia = $data_urodzenia;return $this;}public function getMiejsceUrodzenia(): ?string{return $this->miejsce_urodzenia;}public function setMiejsceUrodzenia(string $miejsce_urodzenia): static{$this->miejsce_urodzenia = $miejsce_urodzenia;return $this;}public function getWojewodztwo(): ?string{return $this->wojewodztwo;}public function setWojewodztwo(string $wojewodztwo): static{$this->wojewodztwo = $wojewodztwo;return $this;}public function getNazwa(): ?string{return $this->nazwa;}public function setNazwa(string $nazwa): static{$this->nazwa = $nazwa;return $this;}public function getMiasto(): ?string{return $this->miasto;}public function setMiasto(string $miasto): static{$this->miasto = $miasto;return $this;}public function getKodPocztowy(): ?string{return $this->kod_pocztowy;}public function setKodPocztowy(string $kod_pocztowy): static{$this->kod_pocztowy = $kod_pocztowy;return $this;}public function getUlica(): ?string{return $this->ulica;}public function setUlica(string $ulica): static{$this->ulica = $ulica;return $this;}public function getNip(): ?string{return $this->nip;}public function setNip(string $nip): static{$this->nip = $nip;return $this;}public function getGrupa(): ?int{return $this->grupa;}public function setGrupa(int $grupa): static{$this->grupa = $grupa;return $this;}public function getStatus(): ?int{return $this->status;}public function setStatus(int $status): static{$this->status = $status;return $this;}public function getDataRejestracji(): ?int{return $this->data_rejestracji;}public function setDataRejestracji(int $data_rejestracji): static{$this->data_rejestracji = $data_rejestracji;return $this;}public function getDataRejestracjiDate(){return date('d-m-Y H:i:s',$this->data_rejestracji);}public function getEmail(): ?string{return $this->email;}public function setEmail(string $email): static{$this->email = $email;return $this;}public function getDataLogowania(): ?int{return $this->data_logowania;}public function setDataLogowania(int $data_logowania): static{$this->data_logowania = $data_logowania;return $this;}public function getDataLogowaniaDate(){return date('d-m-Y H:i:s',$this->data_logowania);}public function getZalogowany(): ?int{return $this->zalogowany;}public function setZalogowany(int $zalogowany): static{$this->zalogowany = $zalogowany;return $this;}public function getZmianaHasla(): ?int{return $this->zmiana_hasla;}public function setZmianaHasla(int $zmiana_hasla): static{$this->zmiana_hasla = $zmiana_hasla;return $this;}public function getIp(): ?string{return $this->ip;}public function setIp(string $ip): static{$this->ip = $ip;return $this;}public function getTelefon(): ?string{return $this->telefon;}public function setTelefon(string $telefon): static{$this->telefon = $telefon;return $this;}public function getPowiazane(): ?string{return $this->powiazane;}public function setPowiazane(string $powiazane): static{$this->powiazane = $powiazane;return $this;}public function getZgodaDane(): ?int{return $this->zgoda_dane;}public function setZgodaDane(int $zgoda_dane): static{$this->zgoda_dane = $zgoda_dane;return $this;}public function getZgodaMarketingowa(): ?int{return $this->zgoda_marketingowa;}public function setZgodaMarketingowa(int $zgoda_marketingowa): static{$this->zgoda_marketingowa = $zgoda_marketingowa;return $this;}public function getDodOpis(): ?string{return $this->dod_opis;}public function setDodOpis(string $dod_opis): static{$this->dod_opis = $dod_opis;return $this;}public function getLoginPrzelozonego(): ?string{return $this->login_przelozonego;}public function setLoginPrzelozonego(string $login_przelozonego): static{$this->login_przelozonego = $login_przelozonego;return $this;}public function getNotatki(): ?string{return $this->notatki;}public function setNotatki(string $notatki): static{$this->notatki = $notatki;return $this;}public function getPesel(): ?string{return $this->pesel;}public function setPesel(string $pesel): static{$this->pesel = $pesel;return $this;}public function getPododdzial(): ?int{return $this->pododdzial;}public function setPododdzial(?int $pododdzial): static{$this->pododdzial = $pododdzial;return $this;}public function getNipDodatkowy(): ?string{return $this->nip_dodatkowy;}public function setNipDodatkowy(string $nip_dodatkowy): static{$this->nip_dodatkowy = $nip_dodatkowy;return $this;}public function getKodPocztowyZamieszkania(): ?string{return $this->KodPocztowyZamieszkania;}public function setKodPocztowyZamieszkania(string $KodPocztowyZamieszkania): static{$this->KodPocztowyZamieszkania = $KodPocztowyZamieszkania;return $this;}public function getMiejscowoscZamieszkania(): ?string{return $this->MiejscowoscZamieszkania;}public function setMiejscowoscZamieszkania(?string $MiejscowoscZamieszkania): static{$this->MiejscowoscZamieszkania = $MiejscowoscZamieszkania;return $this;}public function getUlicaZamieszkania(): ?string{return $this->UlicaZamieszkania;}public function setUlicaZamieszkania(?string $UlicaZamieszkania): static{$this->UlicaZamieszkania = $UlicaZamieszkania;return $this;}public function getPublished(): ?int{return $this->published;}public function setPublished(int $published): static{$this->published = $published;return $this;}public function isKlauzulaInformacyjna(): ?bool{return $this->klauzula_informacyjna;}public function setKlauzulaInformacyjna(bool $klauzula_informacyjna): static{$this->klauzula_informacyjna = $klauzula_informacyjna;return $this;}public function getToken(): ?string{return $this->token;}public function setToken(?string $token): static{$this->token = $token;return $this;}public function getDostepBiura(): ?int{return $this->dostep_biura;}public function setDostepBiura(int $dostep_biura): static{$this->dostep_biura = $dostep_biura;return $this;}public function getNazwaSpecjalna(): ?string{return $this->nazwa_specjalna;}public function setNazwaSpecjalna(string $nazwa_specjalna): static{$this->nazwa_specjalna = $nazwa_specjalna;return $this;}/*** @return Collection<int, UserSzkolenia>*/public function getUserSzkolenia(): Collection{return $this->userSzkolenia;}}