<?php
namespace App\Entity\Core\SelfStudy;
use App\Entity\Core\Category;
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\JoinColumn(name: 'category', onDelete: 'CASCADE')]
#[ORM\ManyToOne(targetEntity: Category::class)]
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;
}
}