src/Entity/Przychody.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PrzychodyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PrzychodyRepository::class)
  7.  * @ORM\Table(name="przychody")
  8.  */
  9. class Przychody
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue(strategy="AUTO")
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=45, nullable=true)
  19.      */
  20.     private $nazwa;
  21.     /**
  22.      * @ORM\Column(type="text", nullable=true)
  23.      */
  24.     private $opis;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="Kategorie")
  27.      * @ORM\JoinColumn(name="idkategorie", referencedColumnName="id")
  28.      */
  29.     private $kategoria;
  30.     /**
  31.      * @return mixed
  32.      */
  33.     public function getId()
  34.     {
  35.         return $this->id;
  36.     }
  37.     /**
  38.      * @param mixed $id
  39.      */
  40.     public function setId($id): void
  41.     {
  42.         $this->id $id;
  43.     }
  44.     /**
  45.      * @return mixed
  46.      */
  47.     public function getNazwa()
  48.     {
  49.         return $this->nazwa;
  50.     }
  51.     /**
  52.      * @param mixed $nazwa
  53.      */
  54.     public function setNazwa($nazwa): void
  55.     {
  56.         $this->nazwa $nazwa;
  57.     }
  58.     /**
  59.      * @return mixed
  60.      */
  61.     public function getOpis()
  62.     {
  63.         return $this->opis;
  64.     }
  65.     /**
  66.      * @param mixed $opis
  67.      */
  68.     public function setOpis($opis): void
  69.     {
  70.         $this->opis $opis;
  71.     }
  72.     /**
  73.      * @return mixed
  74.      */
  75.     public function getKategoria()
  76.     {
  77.         return $this->kategoria;
  78.     }
  79.     /**
  80.      * @param mixed $kategoria
  81.      */
  82.     public function setKategoria($kategoria): void
  83.     {
  84.         $this->kategoria $kategoria;
  85.     }
  86. }