src/Entity/Rozchody.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="rozchody")
  7.  */
  8. class Rozchody
  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.      * @ORM\ManyToOne(targetEntity="Kategorie")
  26.      * @ORM\JoinColumn(name="idkategorie", referencedColumnName="id")
  27.      */
  28.     private $kategoria;
  29.     /**
  30.      * @return mixed
  31.      */
  32.     public function getId()
  33.     {
  34.         return $this->id;
  35.     }
  36.     /**
  37.      * @param mixed $id
  38.      */
  39.     public function setId($id): void
  40.     {
  41.         $this->id $id;
  42.     }
  43.     /**
  44.      * @return mixed
  45.      */
  46.     public function getNazwa()
  47.     {
  48.         return $this->nazwa;
  49.     }
  50.     /**
  51.      * @param mixed $nazwa
  52.      */
  53.     public function setNazwa($nazwa): void
  54.     {
  55.         $this->nazwa $nazwa;
  56.     }
  57.     /**
  58.      * @return mixed
  59.      */
  60.     public function getOpis()
  61.     {
  62.         return $this->opis;
  63.     }
  64.     /**
  65.      * @param mixed $opis
  66.      */
  67.     public function setOpis($opis): void
  68.     {
  69.         $this->opis $opis;
  70.     }
  71.     /**
  72.      * @return mixed
  73.      */
  74.     public function getKategoria()
  75.     {
  76.         return $this->kategoria;
  77.     }
  78.     /**
  79.      * @param mixed $kategoria
  80.      */
  81.     public function setKategoria($kategoria): void
  82.     {
  83.         $this->kategoria $kategoria;
  84.     }
  85. }