src/Entity/Categories.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Categories
  6.  *
  7.  * @ORM\Table(name="categories")
  8.  * @ORM\Entity
  9.  * @ORM\Entity(repositoryClass="App\Repository\CategoriesRepository")
  10.  * 
  11.  */
  12. class Categories
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer", nullable=false)
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="IDENTITY")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="nazwa", type="string", length=50, nullable=false)
  26.      */
  27.     private $nazwa;
  28.     /**
  29.      * @var int
  30.      *
  31.      * @ORM\Column(name="id_parent", type="integer", nullable=false)
  32.      */
  33.     private $idParent;
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="opis", type="text", nullable=false)
  38.      */
  39.     private $opis;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="img", type="string", length=255, nullable=false)
  44.      */
  45.     private $img;
  46.     /**
  47.      * Get id
  48.      *
  49.      * @return integer
  50.      */
  51.     public function getId()
  52.     {
  53.         return $this->id;
  54.     }
  55.     /**
  56.      * Set nazwa
  57.      *
  58.      * @param string $nazwa
  59.      *
  60.      * @return Categories
  61.      */
  62.     public function setNazwa($nazwa)
  63.     {
  64.         $this->nazwa $nazwa;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get nazwa
  69.      *
  70.      * @return string
  71.      */
  72.     public function getNazwa()
  73.     {
  74.         return $this->nazwa;
  75.     }
  76.     /**
  77.      * Set idParent
  78.      *
  79.      * @param integer $idParent
  80.      *
  81.      * @return Categories
  82.      */
  83.     public function setIdParent($idParent)
  84.     {
  85.         $this->idParent $idParent;
  86.         return $this;
  87.     }
  88.     /**
  89.      * Get idParent
  90.      *
  91.      * @return integer
  92.      */
  93.     public function getIdParent()
  94.     {
  95.         return $this->idParent;
  96.     }
  97.     /**
  98.      * Set opis
  99.      *
  100.      * @param string $opis
  101.      *
  102.      * @return Categories
  103.      */
  104.     public function setOpis($opis)
  105.     {
  106.         $this->opis $opis;
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get opis
  111.      *
  112.      * @return string
  113.      */
  114.     public function getOpis()
  115.     {
  116.         return $this->opis;
  117.     }
  118.     /**
  119.      * Set img
  120.      *
  121.      * @param string $img
  122.      *
  123.      * @return Categories
  124.      */
  125.     public function setImg($img)
  126.     {
  127.         $this->img $img;
  128.         return $this;
  129.     }
  130.     /**
  131.      * Get img
  132.      *
  133.      * @return string
  134.      */
  135.     public function getImg()
  136.     {
  137.         return $this->img;
  138.     }
  139. }