src/Entity/ContactMediaCategorie.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactMediaCategorieRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ContactMediaCategorieRepository::class)
  7. */
  8. class ContactMediaCategorie
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="contactMediaCategories")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $contact;
  21. /**
  22. * @ORM\ManyToOne(targetEntity=Media::class, inversedBy="contactMediaCategories")
  23. */
  24. private $media;
  25. /**
  26. * @ORM\ManyToOne(targetEntity=MediaCategorie::class, inversedBy="contactMediaCategories")
  27. * @ORM\JoinColumn(nullable=false)
  28. */
  29. private $category;
  30. public function getId(): ?int
  31. {
  32. return $this->id;
  33. }
  34. public function getContact(): ?Contact
  35. {
  36. return $this->contact;
  37. }
  38. public function setContact(?Contact $contact): self
  39. {
  40. $this->contact = $contact;
  41. return $this;
  42. }
  43. public function getMedia(): ?Media
  44. {
  45. return $this->media;
  46. }
  47. public function setMedia(?Media $media): self
  48. {
  49. $this->media = $media;
  50. return $this;
  51. }
  52. public function getCategory(): ?MediaCategorie
  53. {
  54. return $this->category;
  55. }
  56. public function setCategory(?MediaCategorie $category): self
  57. {
  58. $this->category = $category;
  59. return $this;
  60. }
  61. }