src/Entity/Rodzaje.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity
  6.  * @ORM\Table(name="rodzaje")
  7.  */
  8. class Rodzaje
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue(strategy="AUTO")
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=45, nullable=true)
  18.      */
  19.     private $nazwa;
  20.     /**
  21.      * @ORM\Column(type="text", nullable=true)
  22.      */
  23.     private $opis;
  24.     /**
  25.      * @return mixed
  26.      */
  27.     public function getId()
  28.     {
  29.         return $this->id;
  30.     }
  31.     /**
  32.      * @param mixed $id
  33.      */
  34.     public function setId($id): void
  35.     {
  36.         $this->id $id;
  37.     }
  38.     /**
  39.      * @return mixed
  40.      */
  41.     public function getNazwa()
  42.     {
  43.         return $this->nazwa;
  44.     }
  45.     /**
  46.      * @param mixed $nazwa
  47.      */
  48.     public function setNazwa($nazwa): void
  49.     {
  50.         $this->nazwa $nazwa;
  51.     }
  52.     /**
  53.      * @return mixed
  54.      */
  55.     public function getOpis()
  56.     {
  57.         return $this->opis;
  58.     }
  59.     /**
  60.      * @param mixed $opis
  61.      */
  62.     public function setOpis($opis): void
  63.     {
  64.         $this->opis $opis;
  65.     }
  66.     // Dodaj konstruktory, gettery, settery, jeśli są potrzebne
  67.     // Przykładowy konstruktor:
  68.     // public function __construct($nazwa, $opis) {
  69.     //     $this->nazwa = $nazwa;
  70.     //     $this->opis = $opis;
  71.     // }
  72.     // Gettery i settery również powinny zostać dodane, aby uzyskać dostęp do pól prywatnych.
  73. }