src/CoreBundle/Entity/SelfStudyForKidsCategories.php line 11

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Table("self_study_for_kids_categories")
  6. * @ORM\Entity
  7. */
  8. class SelfStudyForKidsCategories
  9. {
  10. /**
  11. * @ORM\Column(type="integer")
  12. * @ORM\Id
  13. * @ORM\GeneratedValue(strategy="AUTO")
  14. */
  15. private int $id;
  16. /**
  17. * @ORM\Column(name="category_icon")
  18. */
  19. private string $categoryIcon;
  20. /**
  21. * @ORM\Column(name="category_background", nullable=true)
  22. */
  23. private ?string $categoryBackground;
  24. /**
  25. * @ORM\ManyToOne(targetEntity="Category")
  26. * @ORM\JoinColumn(name="category", onDelete="CASCADE")
  27. */
  28. private Category $category;
  29. public function getId(): int
  30. {
  31. return $this->id;
  32. }
  33. public function getCategoryIcon(): string
  34. {
  35. return $this->categoryIcon;
  36. }
  37. public function getCategoryBackground(): ?string
  38. {
  39. return $this->categoryBackground;
  40. }
  41. public function getCategory(): Category
  42. {
  43. return $this->category;
  44. }
  45. }