<?php
namespace CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table("self_study_for_kids_categories")
* @ORM\Entity
*/
class SelfStudyForKidsCategories
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private int $id;
/**
* @ORM\Column(name="category_icon")
*/
private string $categoryIcon;
/**
* @ORM\Column(name="category_background", nullable=true)
*/
private ?string $categoryBackground;
/**
* @ORM\ManyToOne(targetEntity="Category")
* @ORM\JoinColumn(name="category", onDelete="CASCADE")
*/
private Category $category;
public function getId(): int
{
return $this->id;
}
public function getCategoryIcon(): string
{
return $this->categoryIcon;
}
public function getCategoryBackground(): ?string
{
return $this->categoryBackground;
}
public function getCategory(): Category
{
return $this->category;
}
}