<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Categories
*
* @ORM\Table(name="categories")
* @ORM\Entity
* @ORM\Entity(repositoryClass="App\Repository\CategoriesRepository")
*
*/
class Categories
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="nazwa", type="string", length=50, nullable=false)
*/
private $nazwa;
/**
* @var int
*
* @ORM\Column(name="id_parent", type="integer", nullable=false)
*/
private $idParent;
/**
* @var string
*
* @ORM\Column(name="opis", type="text", nullable=false)
*/
private $opis;
/**
* @var string
*
* @ORM\Column(name="img", type="string", length=255, nullable=false)
*/
private $img;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set nazwa
*
* @param string $nazwa
*
* @return Categories
*/
public function setNazwa($nazwa)
{
$this->nazwa = $nazwa;
return $this;
}
/**
* Get nazwa
*
* @return string
*/
public function getNazwa()
{
return $this->nazwa;
}
/**
* Set idParent
*
* @param integer $idParent
*
* @return Categories
*/
public function setIdParent($idParent)
{
$this->idParent = $idParent;
return $this;
}
/**
* Get idParent
*
* @return integer
*/
public function getIdParent()
{
return $this->idParent;
}
/**
* Set opis
*
* @param string $opis
*
* @return Categories
*/
public function setOpis($opis)
{
$this->opis = $opis;
return $this;
}
/**
* Get opis
*
* @return string
*/
public function getOpis()
{
return $this->opis;
}
/**
* Set img
*
* @param string $img
*
* @return Categories
*/
public function setImg($img)
{
$this->img = $img;
return $this;
}
/**
* Get img
*
* @return string
*/
public function getImg()
{
return $this->img;
}
}