src/Entity/Platforma/Wiadomosci.php line 10
<?phpnamespace App\Entity\Platforma;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity]#[ORM\Table(name: 'plat_wiadomosci')]#[ORM\UniqueConstraint(name: 'uniq_id_wiadomosci', columns: ['id_wiadomosci'])]class Wiadomosci{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(name: 'id_wiadomosci', type: 'integer')]private ?int $id = null;#[ORM\Column(name: 'wiad_oddzial', type: 'integer')]private int $wiadOddzial;#[ORM\Column(type: 'string', length: 128)]private string $temat;#[ORM\Column(name: 'wiad_telefon', type: 'string', length: 128)]private string $wiadTelefon;#[ORM\Column(type: 'text')]private string $tresc;#[ORM\Column(name: 'id_user', type: 'integer', nullable: true)]private ?int $idUser = null;#[ORM\Column(type: 'string', length: 128)]private string $ip;#[ORM\Column(name: 'data_wiadomosci', type: 'integer')]private int $dataWiadomosci;#[ORM\Column(name: 'wiad_zrobiony', type: 'integer')]private int $wiadZrobiony;#[ORM\Column(type: 'string', length: 256, nullable: true)]private ?string $nameholder = null;#[ORM\Column(type: 'string', length: 256, nullable: true)]private ?string $email = null;#[ORM\Column(type: 'string', length: 12, nullable: true)]private ?string $nip = null;// --- Gettery i Settery ---public function getId(): ?int { return $this->id; }public function getWiadOddzial(): int { return $this->wiadOddzial; }public function setWiadOddzial(int $wiadOddzial): self { $this->wiadOddzial = $wiadOddzial; return $this; }public function getTemat(): string { return $this->temat; }public function setTemat(string $temat): self { $this->temat = $temat; return $this; }public function getWiadTelefon(): string { return $this->wiadTelefon; }public function setWiadTelefon(string $wiadTelefon): self { $this->wiadTelefon = $wiadTelefon; return $this; }public function getTresc(): string { return $this->tresc; }public function setTresc(string $tresc): self { $this->tresc = $tresc; return $this; }public function getIdUser(): ?int { return $this->idUser; }public function setIdUser(?int $idUser): self { $this->idUser = $idUser; return $this; }public function getIp(): string { return $this->ip; }public function setIp(string $ip): self { $this->ip = $ip; return $this; }public function getDataWiadomosci(): int { return $this->dataWiadomosci; }public function setDataWiadomosci(int $dataWiadomosci): self { $this->dataWiadomosci = $dataWiadomosci; return $this; }public function getWiadZrobiony(): int { return $this->wiadZrobiony; }public function setWiadZrobiony(int $wiadZrobiony): self { $this->wiadZrobiony = $wiadZrobiony; return $this; }public function getNameholder(): ?string { return $this->nameholder; }public function setNameholder(?string $nameholder): self { $this->nameholder = $nameholder; return $this; }public function getEmail(): ?string{return $this->email;}public function setEmail(?string $email): void{$this->email = $email;}public function getNip(): ?string{return $this->nip;}public function setNip(?string $nip): void{$this->nip = $nip;}}