<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="rodzaje")
*/
class Rodzaje
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=45, nullable=true)
*/
private $nazwa;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $opis;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getNazwa()
{
return $this->nazwa;
}
/**
* @param mixed $nazwa
*/
public function setNazwa($nazwa): void
{
$this->nazwa = $nazwa;
}
/**
* @return mixed
*/
public function getOpis()
{
return $this->opis;
}
/**
* @param mixed $opis
*/
public function setOpis($opis): void
{
$this->opis = $opis;
}
// Dodaj konstruktory, gettery, settery, jeśli są potrzebne
// Przykładowy konstruktor:
// public function __construct($nazwa, $opis) {
// $this->nazwa = $nazwa;
// $this->opis = $opis;
// }
// Gettery i settery również powinny zostać dodane, aby uzyskać dostęp do pól prywatnych.
}