src/Entity/SejourSessionMediaCategorie.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SejourSessionMediaCategorieRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=SejourSessionMediaCategorieRepository::class)
  7. */
  8. class SejourSessionMediaCategorie
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=SejourSession::class, inversedBy="sejourSessionMediaCategories")
  18. * @ORM\JoinColumn(nullable=true)
  19. */
  20. private $sejourSession;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Media::class, inversedBy="sejourSessionMediaCategories")
  23. * @ORM\JoinColumn(nullable=true)
  24. */
  25. private $media;
  26. /**
  27. * @ORM\ManyToOne(targetEntity=MediaCategorie::class, inversedBy="sejourSessionMediaCategories")
  28. */
  29. private $mediaCategorie;
  30. /**
  31. * @ORM\Column(type="string", length=255)
  32. */
  33. private $entity;
  34. /**
  35. * @ORM\Column(type="integer")
  36. */
  37. private $entityId;
  38. public function getId(): ?int
  39. {
  40. return $this->id;
  41. }
  42. public function getSejourSession(): ?SejourSession
  43. {
  44. return $this->sejourSession;
  45. }
  46. public function setSejourSession(?SejourSession $sejourSession): self
  47. {
  48. $this->sejourSession = $sejourSession;
  49. return $this;
  50. }
  51. public function getMedia(): ?Media
  52. {
  53. return $this->media;
  54. }
  55. public function setMedia(?Media $media): self
  56. {
  57. $this->media = $media;
  58. return $this;
  59. }
  60. public function getMediaCategorie(): ?MediaCategorie
  61. {
  62. return $this->mediaCategorie;
  63. }
  64. public function setMediaCategorie(?MediaCategorie $mediaCategorie): self
  65. {
  66. $this->mediaCategorie = $mediaCategorie;
  67. return $this;
  68. }
  69. public function getEntity(): ?string
  70. {
  71. return $this->entity;
  72. }
  73. public function setEntity(string $entity): self
  74. {
  75. $this->entity = $entity;
  76. return $this;
  77. }
  78. public function getEntityId(): ?int
  79. {
  80. return $this->entityId;
  81. }
  82. public function setEntityId(int $entityId): self
  83. {
  84. $this->entityId = $entityId;
  85. return $this;
  86. }
  87. }