src/Entity/Platforma/Wiadomosci.php line 10

  1. <?php
  2. namespace App\Entity\Platforma;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity]
  5. #[ORM\Table(name'plat_wiadomosci')]
  6. #[ORM\UniqueConstraint(name'uniq_id_wiadomosci'columns: ['id_wiadomosci'])]
  7. class Wiadomosci
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(name'id_wiadomosci'type'integer')]
  12.     private ?int $id null;
  13.     #[ORM\Column(name'wiad_oddzial'type'integer')]
  14.     private int $wiadOddzial;
  15.     #[ORM\Column(type'string'length128)]
  16.     private string $temat;
  17.     #[ORM\Column(name'wiad_telefon'type'string'length128)]
  18.     private string $wiadTelefon;
  19.     #[ORM\Column(type'text')]
  20.     private string $tresc;
  21.     #[ORM\Column(name'id_user'type'integer'nullabletrue)]
  22.     private ?int $idUser null;
  23.     #[ORM\Column(type'string'length128)]
  24.     private string $ip;
  25.     #[ORM\Column(name'data_wiadomosci'type'integer')]
  26.     private int $dataWiadomosci;
  27.     #[ORM\Column(name'wiad_zrobiony'type'integer')]
  28.     private int $wiadZrobiony;
  29.     #[ORM\Column(type'string'length256nullabletrue)]
  30.     private ?string $nameholder null;
  31.     #[ORM\Column(type'string'length256nullabletrue)]
  32.     private ?string $email null;
  33.     #[ORM\Column(type'string'length12nullabletrue)]
  34.     private ?string $nip null;
  35.     // --- Gettery i Settery ---
  36.     public function getId(): ?int { return $this->id; }
  37.     public function getWiadOddzial(): int { return $this->wiadOddzial; }
  38.     public function setWiadOddzial(int $wiadOddzial): self $this->wiadOddzial $wiadOddzial; return $this; }
  39.     public function getTemat(): string { return $this->temat; }
  40.     public function setTemat(string $temat): self $this->temat $temat; return $this; }
  41.     public function getWiadTelefon(): string { return $this->wiadTelefon; }
  42.     public function setWiadTelefon(string $wiadTelefon): self $this->wiadTelefon $wiadTelefon; return $this; }
  43.     public function getTresc(): string { return $this->tresc; }
  44.     public function setTresc(string $tresc): self $this->tresc $tresc; return $this; }
  45.     public function getIdUser(): ?int { return $this->idUser; }
  46.     public function setIdUser(?int $idUser): self $this->idUser $idUser; return $this; }
  47.     public function getIp(): string { return $this->ip; }
  48.     public function setIp(string $ip): self $this->ip $ip; return $this; }
  49.     public function getDataWiadomosci(): int { return $this->dataWiadomosci; }
  50.     public function setDataWiadomosci(int $dataWiadomosci): self $this->dataWiadomosci $dataWiadomosci; return $this; }
  51.     public function getWiadZrobiony(): int { return $this->wiadZrobiony; }
  52.     public function setWiadZrobiony(int $wiadZrobiony): self $this->wiadZrobiony $wiadZrobiony; return $this; }
  53.     public function getNameholder(): ?string { return $this->nameholder; }
  54.     public function setNameholder(?string $nameholder): self $this->nameholder $nameholder; return $this; }
  55.     public function getEmail(): ?string
  56.     {
  57.         return $this->email;
  58.     }
  59.     public function setEmail(?string $email): void
  60.     {
  61.         $this->email $email;
  62.     }
  63.     public function getNip(): ?string
  64.     {
  65.         return $this->nip;
  66.     }
  67.     public function setNip(?string $nip): void
  68.     {
  69.         $this->nip $nip;
  70.     }
  71. }