src/Entity/SongStation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Repository\SongStationRepository")
  6. */
  7. class SongStation
  8. {
  9. /**
  10. * @ORM\Id()
  11. * @ORM\GeneratedValue()
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\ManyToOne(targetEntity="App\Entity\Song", inversedBy="songStations")
  17. * @ORM\JoinColumn(nullable=false)
  18. */
  19. private $song;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="App\Entity\Station", inversedBy="songStations")
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $station;
  25. /**
  26. * @ORM\Column(type="integer")
  27. */
  28. private $mediaId;
  29. public function getId(): ?int
  30. {
  31. return $this->id;
  32. }
  33. public function getSong(): ?Song
  34. {
  35. return $this->song;
  36. }
  37. public function setSong(?Song $song): self
  38. {
  39. $this->song = $song;
  40. return $this;
  41. }
  42. public function getStation(): ?Station
  43. {
  44. return $this->station;
  45. }
  46. public function setStation(?Station $station): self
  47. {
  48. $this->station = $station;
  49. return $this;
  50. }
  51. public function getMediaId(): ?int
  52. {
  53. return $this->mediaId;
  54. }
  55. public function setMediaId(int $mediaId): self
  56. {
  57. $this->mediaId = $mediaId;
  58. return $this;
  59. }
  60. }