<?phpnamespace App\Entity;use App\Repository\PrzychodyRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PrzychodyRepository::class) * @ORM\Table(name="przychody") */class Przychody{ /** * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=45, nullable=true) */ private $nazwa; /** * @ORM\Column(type="text", nullable=true) */ private $opis; /** * @ORM\ManyToOne(targetEntity="Kategorie") * @ORM\JoinColumn(name="idkategorie", referencedColumnName="id") */ private $kategoria; /** * @return mixed */ public function getId() { return $this->id; } /** * @param mixed $id */ public function setId($id): void { $this->id = $id; } /** * @return mixed */ public function getNazwa() { return $this->nazwa; } /** * @param mixed $nazwa */ public function setNazwa($nazwa): void { $this->nazwa = $nazwa; } /** * @return mixed */ public function getOpis() { return $this->opis; } /** * @param mixed $opis */ public function setOpis($opis): void { $this->opis = $opis; } /** * @return mixed */ public function getKategoria() { return $this->kategoria; } /** * @param mixed $kategoria */ public function setKategoria($kategoria): void { $this->kategoria = $kategoria; }}